summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}