summaryrefslogtreecommitdiff
path: root/libdiskfs/file-chmod.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-17 20:14:10 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-17 20:14:10 +0000
commitc1e7110a073c816cade38adf334d2a0cd460879f (patch)
treeaba736e574c10653d758a00e57e57043ba6f6099 /libdiskfs/file-chmod.c
parentbaf29dc2a61ca8d1a1549f867d5bf265c60c7913 (diff)
entered into RCS
Diffstat (limited to 'libdiskfs/file-chmod.c')
-rw-r--r--libdiskfs/file-chmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/file-chmod.c b/libdiskfs/file-chmod.c
index b06cf02e..c5228d13 100644
--- a/libdiskfs/file-chmod.c
+++ b/libdiskfs/file-chmod.c
@@ -38,7 +38,7 @@ diskfs_S_file_chmod (struct protid *cred,
if (!diskfs_isuid (np->dn_stat.st_uid, cred))
mode &= ~S_ISUID;
}
- mode |= ((np->dn_stat.st_mode & (S_IFMT | S_ISPARE)));
+ mode |= (np->dn_stat.st_mode & (S_IFMT | S_ISPARE));
np->dn_stat.st_mode = mode;
np->dn_set_ctime = 1;
}