aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/fs/xfs/xfs_vnodeops.c')
-rw-r--r--sys/gnu/fs/xfs/xfs_vnodeops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/gnu/fs/xfs/xfs_vnodeops.c b/sys/gnu/fs/xfs/xfs_vnodeops.c
index 41442ee1f60f..32a6370e8be1 100644
--- a/sys/gnu/fs/xfs/xfs_vnodeops.c
+++ b/sys/gnu/fs/xfs/xfs_vnodeops.c
@@ -381,6 +381,8 @@ xfs_setattr(
/* boolean: are we the file owner? */
#if 0
file_owner = (current_fsuid(credp) == ip->i_d.di_uid);
+#else
+ file_owner = (credp->cr_uid == ip->i_d.di_uid);
#endif
/*