diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-11-08 13:11:53 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-11-08 13:11:53 +0000 |
commit | 9ee6c6e7174ba8246559a4b73799c83c17f3d309 (patch) | |
tree | 3a29c01afe1e0555215d9fdecd14a6b0af98a0a7 /cpp/src/IcePatch2/Util.cpp | |
parent | adding a flag to skip precondition checks. (diff) | |
download | ice-9ee6c6e7174ba8246559a4b73799c83c17f3d309.tar.bz2 ice-9ee6c6e7174ba8246559a4b73799c83c17f3d309.tar.xz ice-9ee6c6e7174ba8246559a4b73799c83c17f3d309.zip |
Added server-lifetime attribute and removed wait-for-activation.
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index 2462007df90..09e670bc6be 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -675,6 +675,15 @@ IcePatch2::createDirectoryRecursive(const string& pa) if(!isRoot(path + "/")) { + OS::structstat buf; + if(OS::osstat(path, &buf) != -1) + { + if(S_ISDIR(buf.st_mode)) + { + return; + } + } + if(OS::mkdir(path, 0777) == -1) { if(errno != EEXIST) |