fix "Couldn't chdir(foo): No such file or directory"

This commit is contained in:
Glenn Maynard
2004-01-16 22:40:29 +00:00
parent 15dc3fb189
commit 4f901a9f00
+1 -1
View File
@@ -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;