summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-06-06 23:34:38 +0000
committertmm <tmm@FreeBSD.org>2001-06-06 23:34:38 +0000
commit0e4c21f7c1528eb7a39f52dfa35e17904d47a0cf (patch)
tree0583b327f8a1b98e0b88aebfbea9c48673ef8f25 /sys/kern
parentabebae52ec3f674730055c04a3b57846ff3ab5c0 (diff)
downloadFreeBSD-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.c2
-rw-r--r--sys/kern/vfs_syscalls.c2
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);
OpenPOWER on IntegriCloud