diff options
author | tmm <tmm@FreeBSD.org> | 2001-06-06 23:34:38 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-06-06 23:34:38 +0000 |
commit | 0e4c21f7c1528eb7a39f52dfa35e17904d47a0cf (patch) | |
tree | 0583b327f8a1b98e0b88aebfbea9c48673ef8f25 /sys/kern | |
parent | abebae52ec3f674730055c04a3b57846ff3ab5c0 (diff) | |
download | FreeBSD-src-0e4c21f7c1528eb7a39f52dfa35e17904d47a0cf.zip FreeBSD-src-0e4c21f7c1528eb7a39f52dfa35e17904d47a0cf.tar.gz |
Fix an instance of NDINIT in the extattrctl syscall: LOCKLEAF was or'ed
to the operation parameter, not to the flags as it should be.
Reviewed by: rwatson
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_extattr.c | 2 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 75d3eb7..850914c 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -3707,7 +3707,7 @@ extattrctl(p, uap) */ filename_vp = NULL; if (SCARG(uap, filename) != NULL) { - NDINIT(&nd, LOOKUP | LOCKLEAF, FOLLOW, UIO_USERSPACE, + NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, SCARG(uap, filename), p); if ((error = namei(&nd)) != 0) return (error); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 75d3eb7..850914c 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -3707,7 +3707,7 @@ extattrctl(p, uap) */ filename_vp = NULL; if (SCARG(uap, filename) != NULL) { - NDINIT(&nd, LOOKUP | LOCKLEAF, FOLLOW, UIO_USERSPACE, + NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, SCARG(uap, filename), p); if ((error = namei(&nd)) != 0) return (error); |