vfs_syscalls.c 1.452 mistakenly swapped the behavior of chown() and lchown().
This commit is contained in:
parent
4760d2ac3f
commit
8a3724388b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user