[darwinbuild-changes] [1005] branches/PR-9697169/darwinup/Depot.cpp

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 3 01:36:43 PST 2012


Revision: 1005
          http://trac.macosforge.org/projects/darwinbuild/changeset/1005
Author:   mww at apple.com
Date:     2012-02-03 01:36:43 -0800 (Fri, 03 Feb 2012)
Log Message:
-----------
All the other EEXIST checks should have been a hint, no?

Modified Paths:
--------------
    branches/PR-9697169/darwinup/Depot.cpp

Modified: branches/PR-9697169/darwinup/Depot.cpp
===================================================================
--- branches/PR-9697169/darwinup/Depot.cpp	2012-02-03 09:33:41 UTC (rev 1004)
+++ branches/PR-9697169/darwinup/Depot.cpp	2012-02-03 09:36:43 UTC (rev 1005)
@@ -120,7 +120,7 @@
 	}
 	
 	int res = mkdir(m_depot_path, m_depot_mode);
-	if (res) {
+	if (res && errno != EEXIST) {
 		perror(m_depot_path);
 		return res;
 	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20120203/fa983774/attachment.html>


More information about the darwinbuild-changes mailing list