mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 01:59:38 -04:00
Correct the logic broken in my last commit.
Reported by: tijl
This commit is contained in:
parent
d983befd2f
commit
44fcd367c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue