[darwinbuild-changes] [1004] branches/PR-9697169/darwinup/Depot.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Feb 3 01:33:42 PST 2012
Revision: 1004
http://trac.macosforge.org/projects/darwinbuild/changeset/1004
Author: mww at apple.com
Date: 2012-02-03 01:33:41 -0800 (Fri, 03 Feb 2012)
Log Message:
-----------
Provide clearer error reporting if Depot mkdir fails.
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:32:45 UTC (rev 1003)
+++ branches/PR-9697169/darwinup/Depot.cpp 2012-02-03 09:33:41 UTC (rev 1004)
@@ -120,6 +120,11 @@
}
int res = mkdir(m_depot_path, m_depot_mode);
+ if (res) {
+ perror(m_depot_path);
+ return res;
+ }
+
res = chmod(m_depot_path, m_depot_mode);
res = chown(m_depot_path, uid, gid);
if (res && errno != EEXIST) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20120203/b427daa5/attachment.html>
More information about the darwinbuild-changes
mailing list