diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-16 02:35:45 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-16 02:35:45 +0000 |
commit | 5f1f11ca037b967d5448bef1e5bd7a4cd31ba86d (patch) | |
tree | 457d7d4181ca74a6c5a6031b6dbf3c7e9cef115f /libdiskfs/diskfs.h | |
parent | 1cef10dc44565a8ce40f5f0424e9fcc3f237fdbc (diff) |
(diskfs_checkdirmod): diskfs_isowner returns error or zero, so invert
sense of tests.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r-- | libdiskfs/diskfs.h | 2 |
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; |