localize Windows hack
This commit is contained in:
@@ -152,11 +152,14 @@ bool CreateDirectories( RString Path )
|
|||||||
/* I can't reproduce this anymore. If we get ENOENT, log it but keep
|
/* I can't reproduce this anymore. If we get ENOENT, log it but keep
|
||||||
* going. */
|
* going. */
|
||||||
if( errno == ENOENT )
|
if( errno == ENOENT )
|
||||||
|
{
|
||||||
WARN( ssprintf("Couldn't create %s: %s", curpath.c_str(), strerror(errno)) );
|
WARN( ssprintf("Couldn't create %s: %s", curpath.c_str(), strerror(errno)) );
|
||||||
|
errno = EEXIST;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( errno == EEXIST || errno == ENOENT )
|
if( errno == EEXIST )
|
||||||
continue; // we expect to see these errors
|
continue; // we expect to see this error
|
||||||
|
|
||||||
// XXX: This doesn't make sense. Why do we return if LOG is present here?
|
// XXX: This doesn't make sense. Why do we return if LOG is present here?
|
||||||
if( LOG )
|
if( LOG )
|
||||||
|
|||||||
Reference in New Issue
Block a user