Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 09:36:20 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255236 - head/sys/kern
Message-ID:  <201309050936.r859aKbo091675@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309050936.r859aKbo091675>