Correct the logic broken in my last commit.
Reported by: tijl
This commit is contained in:
parent
d983befd2f
commit
44fcd367c5
@ -920,7 +920,7 @@ change_dir(vp, td)
|
||||
return (ENOTDIR);
|
||||
#ifdef MAC
|
||||
error = mac_vnode_check_chdir(td->td_ucred, vp);
|
||||
if (error == 0)
|
||||
if (error != 0)
|
||||
return (error);
|
||||
#endif
|
||||
return (VOP_ACCESS(vp, VEXEC, td->td_ucred, td));
|
||||
|
Loading…
Reference in New Issue
Block a user