[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 05/30: Make fakeroot return file types from underly fs
From: |
Samuel Thibault |
Subject: |
[hurd] 05/30: Make fakeroot return file types from underly fs |
Date: |
Tue, 22 Sep 2015 21:51:57 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 8b14af6546d542878a8ea6ca08e49e0cba2e34ef
Author: Samuel Thibault <address@hidden>
Date: Fri Aug 14 15:17:37 2015 +0200
Make fakeroot return file types from underly fs
Fakeroot does not support faking them anyway, and they may change on the
underlying fs, e.g. when creating a local socket.
* trans/fakeroot.c (netfs_validate_stat): Return S_IFMT part of st_mode as
provided by underlying filesystem.
---
trans/fakeroot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 4275152..3c84ce7 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -482,7 +482,7 @@ netfs_validate_stat (struct node *np, struct iouser *cred)
if (netfs_node_netnode (np)->faked & FAKE_AUTHOR)
st.st_author = np->nn_stat.st_author;
if (netfs_node_netnode (np)->faked & FAKE_MODE)
- st.st_mode = np->nn_stat.st_mode;
+ st.st_mode = (st.st_mode & S_IFMT) | (np->nn_stat.st_mode & ~S_IFMT);
np->nn_stat = st;
np->nn_translated = S_ISLNK (st.st_mode) ? S_IFLNK : 0;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (3dc2076 -> 3f883d3), Samuel Thibault, 2015/09/22
- [hurd] 03/30: pflocal: fix receiver lookup, Samuel Thibault, 2015/09/22
- [hurd] 04/30: libports: clarify why we emulate protected payloads, Samuel Thibault, 2015/09/22
- [hurd] 06/30: Fake full file access only for faked nodes, Samuel Thibault, 2015/09/22
- [hurd] 05/30: Make fakeroot return file types from underly fs,
Samuel Thibault <=
- [hurd] 07/30: ext2fs: improve ext2fs debugging, Samuel Thibault, 2015/09/22
- [hurd] 10/30: libdiskfs: fix typo, Samuel Thibault, 2015/09/22
- [hurd] 02/30: Print which path init tried to execv, Samuel Thibault, 2015/09/22
- [hurd] 11/30: libdiskfs: add missing declarations, Samuel Thibault, 2015/09/22
- [hurd] 08/30: ext2fs: provide unconditional debug macro, Samuel Thibault, 2015/09/22
- [hurd] 16/30: Make procfs accept none or proc as "device", Samuel Thibault, 2015/09/22
- [hurd] 15/30: Fix opening a fifo with O_RDWR, Samuel Thibault, 2015/09/22
- [hurd] 09/30: libdiskfs: fix parent lookup in the name cache, Samuel Thibault, 2015/09/22
- [hurd] 17/30: Also do not realpath "proc" pseudo-device, Samuel Thibault, 2015/09/22
- [hurd] 13/30: Fix build against glibc 2.21, Samuel Thibault, 2015/09/22