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
This commit is contained in:
Thomas Moestl 2001-06-06 23:34:38 +00:00
parent c29b4c13d0
commit c0a0fb85e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77845
2 changed files with 2 additions and 2 deletions

View File

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

View File

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