svn commit: r255236 - head/sys/kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Sep 5 09:36:20 UTC 2013


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));


More information about the svn-src-all mailing list