Date: Tue, 14 Nov 2006 20:39:41 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109988 for review Message-ID: <200611142039.kAEKdfJs047947@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109988 Change 109988 by millert@millert_g5tower on 2006/11/14 20:39:34 Fix logic reversal. mac_[gs]et_file should follow symlinks, mac_[gs]et_link should not. Affected files ... .. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/security/mac_base.c#21 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/security/mac_base.c#21 (text+ko) ==== @@ -1644,7 +1644,7 @@ register_t *ret __unused) { - return (mac_get_filelink(p, uap->mac_p, uap->path_p, 0)); + return (mac_get_filelink(p, uap->mac_p, uap->path_p, 1)); } int @@ -1652,7 +1652,7 @@ register_t *ret __unused) { - return (mac_get_filelink(p, uap->mac_p, uap->path_p, 1)); + return (mac_get_filelink(p, uap->mac_p, uap->path_p, 0)); } int @@ -1810,7 +1810,7 @@ register_t *ret __unused) { - return (mac_set_filelink(p, uap->mac_p, uap->path_p, 0)); + return (mac_set_filelink(p, uap->mac_p, uap->path_p, 1)); } int @@ -1818,7 +1818,7 @@ register_t *ret __unused) { - return (mac_set_filelink(p, uap->mac_p, uap->path_p, 1)); + return (mac_set_filelink(p, uap->mac_p, uap->path_p, 0)); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611142039.kAEKdfJs047947>