diff options
| author | callum_linden <none@none> | 2018-01-03 13:57:07 -0800 |
|---|---|---|
| committer | callum_linden <none@none> | 2018-01-03 13:57:07 -0800 |
| commit | 3fbe1bd0c2ec9d23763175c79b8ae74f25c040a4 (patch) | |
| tree | 8f963ace1db62a77f91d22e30a6219fc5aea95be /indra/llcommon/llfile.cpp | |
| parent | b2bbd91669690c22ded28a5890153bb780b7dc62 (diff) | |
| parent | 2af6a857c42bd4d8f20d4fbad1bef5edaa27348f (diff) | |
Automated merge with tip of viewer64
Diffstat (limited to 'indra/llcommon/llfile.cpp')
| -rw-r--r-- | indra/llcommon/llfile.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llcommon/llfile.cpp b/indra/llcommon/llfile.cpp index 7b559861bb..8aa41035b9 100644 --- a/indra/llcommon/llfile.cpp +++ b/indra/llcommon/llfile.cpp @@ -182,7 +182,14 @@ int LLFile::mkdir(const std::string& dirname, int perms) int rc = ::mkdir(dirname.c_str(), (mode_t)perms); #endif // We often use mkdir() to ensure the existence of a directory that might - // already exist. Don't spam the log if it does. + // already exist. There is no known case in which we want to call out as + // an error the requested directory already existing. + if (rc < 0 && errno == EEXIST) + { + // this is not the error you want, move along + return 0; + } + // anything else might be a problem return warnif("mkdir", dirname, rc, EEXIST); } |
