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