diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-05-08 15:40:33 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-05-08 15:40:33 +0000 |
commit | cbdbf5e58ea01a80e3d355099aad1f2117d47863 (patch) | |
tree | d94e107c7a04974bf75ef5e1449b3d8a7eed3f63 /src/util | |
parent | 83ae64bb588d37b6bec45a1f42eb2584f9015fea (diff) |
Fix return code of CCTK_CreateDirectory() if it already exists.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4292 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/File.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/File.c b/src/util/File.c index d0bfc542..326f4a0b 100644 --- a/src/util/File.c +++ b/src/util/File.c @@ -136,6 +136,7 @@ int CCTK_CreateDirectory (int mode, const char *pathname) { if (stat (pathname, &statbuf)) { + retval = 0; if (MKDIR_WRAPPER (pathname, mode) == -1) { retval = errno == EEXIST ? 1 : -2; |