fix "Couldn't chdir(foo): No such file or directory"
This commit is contained in:
@@ -80,7 +80,7 @@ void DirectFilenameDB::PopulateFileSet( FileSet &fs, const CString &path )
|
||||
if( chdir(root+sPath) == -1 )
|
||||
{
|
||||
/* Only log once per dir. */
|
||||
if( LOG )
|
||||
if( LOG && errno != ENOENT )
|
||||
LOG->MapLog("chdir " + sPath, "Couldn't chdir(%s): %s", sPath.c_str(), strerror(errno) );
|
||||
close( OldDir );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user