localize Windows hack

This commit is contained in:
Glenn Maynard
2007-05-08 03:18:07 +00:00
parent 4329679b67
commit f46f9ba9a8
@@ -146,12 +146,15 @@ bool CreateDirectories( RString Path )
if( DoMkdir(curpath, 0777) == 0 )
continue;
#if defined(WIN32)
/* When creating a directory that already exists over Samba, Windows is
* returning ENOENT instead of EEXIST. */
/* I can't reproduce this anymore. If we get ENOENT, log it but keep
* going. */
if( errno == ENOENT )
WARN( ssprintf("Couldn't create %s: %s", curpath.c_str(), strerror(errno)) );
#endif
if( errno == EEXIST || errno == ENOENT )
continue; // we expect to see these errors