mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 23:28:57 +00:00
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:
parent
c29b4c13d0
commit
c0a0fb85e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77845
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user