diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-07-16 10:51:20 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-20 17:51:52 +0200 |
commit | b1a3f96a8139c5ed3aac7b8a77b06ba4c0a877c7 (patch) | |
tree | 3461563e474a4fe9c5cd87627bf409d58d636a96 /procfs.c | |
parent | 669dadfa07a5e63db8d9e572603872be88db52a3 (diff) | |
download | hurd-b1a3f96a8139c5ed3aac7b8a77b06ba4c0a877c7.tar.gz hurd-b1a3f96a8139c5ed3aac7b8a77b06ba4c0a877c7.tar.bz2 hurd-b1a3f96a8139c5ed3aac7b8a77b06ba4c0a877c7.zip |
Fix procfs_node_chmod
Formerly only the mode_t bits cut out by S_IFMT were preserved, but
this does not include S_IPTRANS. Fix this by preserving everything but
the permission bits.
* procfs.c (procfs_node_chmod): Fix bitmask.
Diffstat (limited to 'procfs.c')
-rw-r--r-- | procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ void procfs_node_chown (struct node *np, uid_t owner) void procfs_node_chmod (struct node *np, mode_t mode) { - np->nn_stat.st_mode = (np->nn_stat.st_mode & S_IFMT) | mode; + np->nn_stat.st_mode = (np->nn_stat.st_mode & ~ALLPERMS) | mode; np->nn_translated = np->nn_stat.st_mode; } |