localize Windows hack
This commit is contained in:
@@ -146,12 +146,15 @@ bool CreateDirectories( RString Path )
|
|||||||
if( DoMkdir(curpath, 0777) == 0 )
|
if( DoMkdir(curpath, 0777) == 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#if defined(WIN32)
|
||||||
/* When creating a directory that already exists over Samba, Windows is
|
/* When creating a directory that already exists over Samba, Windows is
|
||||||
* returning ENOENT instead of EEXIST. */
|
* returning ENOENT instead of EEXIST. */
|
||||||
/* 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)) );
|
||||||
|
#endif
|
||||||
|
|
||||||
if( errno == EEXIST || errno == ENOENT )
|
if( errno == EEXIST || errno == ENOENT )
|
||||||
continue; // we expect to see these errors
|
continue; // we expect to see these errors
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user