Author: pjd Date: Thu Sep 5 09:36:19 2013 New Revision: 255236 URL: http://svnweb.freebsd.org/changeset/base/255236
Log: Correct the logic broken in my last commit. Reported by: tijl Modified: head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/vfs_syscalls.c ============================================================================== --- head/sys/kern/vfs_syscalls.c Thu Sep 5 08:12:36 2013 (r255235) +++ head/sys/kern/vfs_syscalls.c Thu Sep 5 09:36:19 2013 (r255236) @@ -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)); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"