summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-16 02:35:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-16 02:35:45 +0000
commit5f1f11ca037b967d5448bef1e5bd7a4cd31ba86d (patch)
tree457d7d4181ca74a6c5a6031b6dbf3c7e9cef115f /libdiskfs
parent1cef10dc44565a8ce40f5f0424e9fcc3f237fdbc (diff)
(diskfs_checkdirmod): diskfs_isowner returns error or zero, so invert
sense of tests.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 6a76f035..8cada32f 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -803,7 +803,7 @@ diskfs_checkdirmod (struct node *dp, struct node *np,
return err;
if ((dp->dn_stat.st_mode & S_ISVTX) && np && !diskfs_isuid (0, cred)
- && !diskfs_isowner (dp, cred) && !diskfs_isowner (np, cred))
+ && diskfs_isowner (dp, cred) && diskfs_isowner (np, cred))
return EACCES;
return 0;