vfs_syscalls.c 1.452 mistakenly swapped the behavior of chown() and lchown().

This commit is contained in:
Don Lewis 2008-04-07 00:29:32 +00:00
parent 4760d2ac3f
commit 8a3724388b

View File

@ -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);