diff options
author | truckman <truckman@FreeBSD.org> | 2008-04-07 00:29:32 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2008-04-07 00:29:32 +0000 |
commit | 3ab6955dbcafab6f0e32e2e200b031ac8762ec6a (patch) | |
tree | 63a91be0e02e9174a396eb44b6a959628b574b97 /sys/kern/vfs_syscalls.c | |
parent | 1e160a4b217803d28cc82e1a6892bd806496e3f7 (diff) | |
download | FreeBSD-src-3ab6955dbcafab6f0e32e2e200b031ac8762ec6a.zip FreeBSD-src-3ab6955dbcafab6f0e32e2e200b031ac8762ec6a.tar.gz |
vfs_syscalls.c 1.452 mistakenly swapped the behavior of chown() and lchown().
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index f00563f..09f51e1 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -2993,7 +2993,7 @@ kern_fchownat(struct thread *td, int fd, char *path, enum uio_seg pathseg, int error, vfslocked, follow; AUDIT_ARG(owner, uid, gid); - follow = (flag & AT_SYMLINK_NOFOLLOW) == 0 ? NOFOLLOW : FOLLOW; + follow = (flag & AT_SYMLINK_NOFOLLOW) ? NOFOLLOW : FOLLOW; NDINIT_AT(&nd, LOOKUP, follow | MPSAFE | AUDITVNODE1, pathseg, path, fd, td); |