[127024] trunk/base/src/darwintracelib1.0/unlink.c

cal at macports.org cal at macports.org
Sun Oct 19 08:59:19 PDT 2014


Revision: 127024
          https://trac.macports.org/changeset/127024
Author:   cal at macports.org
Date:     2014-10-19 08:59:19 -0700 (Sun, 19 Oct 2014)
Log Message:
-----------
trace mode: don't follow symlinks when doing unlink, avoids error when unlink(x) where x is a symlink in the sandbox pointing outside the sandbox, fixes trace mode build of Python.

Modified Paths:
--------------
    trunk/base/src/darwintracelib1.0/unlink.c

Modified: trunk/base/src/darwintracelib1.0/unlink.c
===================================================================
--- trunk/base/src/darwintracelib1.0/unlink.c	2014-10-19 15:22:08 UTC (rev 127023)
+++ trunk/base/src/darwintracelib1.0/unlink.c	2014-10-19 15:59:19 UTC (rev 127024)
@@ -52,7 +52,7 @@
 
 	int result = 0;
 
-	if (!__darwintrace_is_in_sandbox(path, DT_REPORT | DT_ALLOWDIR | DT_FOLLOWSYMS)) {
+	if (!__darwintrace_is_in_sandbox(path, DT_REPORT | DT_ALLOWDIR)) {
 		errno = ENOENT;
 		result = -1;
 	} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141019/69c69032/attachment.html>


More information about the macports-changes mailing list