[108467] trunk/base/src/darwintracelib1.0/darwintrace.c

cal at macports.org cal at macports.org
Tue Jul 23 14:46:59 PDT 2013


Revision: 108467
          https://trac.macports.org/changeset/108467
Author:   cal at macports.org
Date:     2013-07-23 14:46:59 -0700 (Tue, 23 Jul 2013)
Log Message:
-----------
darwintrace: always allow access to '/'. A filesystem without '/' confuses some build systems.

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

Modified: trunk/base/src/darwintracelib1.0/darwintrace.c
===================================================================
--- trunk/base/src/darwintracelib1.0/darwintrace.c	2013-07-23 21:41:28 UTC (rev 108466)
+++ trunk/base/src/darwintracelib1.0/darwintrace.c	2013-07-23 21:46:59 UTC (rev 108467)
@@ -912,6 +912,10 @@
 		strcat(normalizedpath, "/");
 	}
 
+	if (strcmp("/", normalizedpath) == 0) {
+		/* always allow '/' */
+		return 1;
+	}
 	for (__darwintrace_filemap_iterator_init(&filemap_it);
 	        (t = __darwintrace_filemap_iter(&command, &replacementpath, &filemap_it));) {
 		if (__darwintrace_pathbeginswith(normalizedpath, t)) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130723/f065fdc0/attachment-0001.html>


More information about the macports-changes mailing list