Fixed breakage of access() in rev.1.164. Wrong credentials were used for
the final path component.
This commit is contained in:
parent
711abb6d69
commit
0abc15fd0b
@ -1729,7 +1729,7 @@ access(p, uap)
|
||||
if (SCARG(uap, flags) & X_OK)
|
||||
flags |= VEXEC;
|
||||
if ((flags & VWRITE) == 0 || (error = vn_writechk(vp)) == 0)
|
||||
error = VOP_ACCESS(vp, flags, cred, p);
|
||||
error = VOP_ACCESS(vp, flags, tmpcred, p);
|
||||
}
|
||||
NDFREE(&nd, NDF_ONLY_PNBUF);
|
||||
vput(vp);
|
||||
|
@ -1729,7 +1729,7 @@ access(p, uap)
|
||||
if (SCARG(uap, flags) & X_OK)
|
||||
flags |= VEXEC;
|
||||
if ((flags & VWRITE) == 0 || (error = vn_writechk(vp)) == 0)
|
||||
error = VOP_ACCESS(vp, flags, cred, p);
|
||||
error = VOP_ACCESS(vp, flags, tmpcred, p);
|
||||
}
|
||||
NDFREE(&nd, NDF_ONLY_PNBUF);
|
||||
vput(vp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user