All the other EEXIST checks should have been a hint, no?
--- 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;
}