From 4f901a9f000a7d545c2824edf7c852e15596f372 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 16 Jan 2004 22:40:29 +0000 Subject: [PATCH] fix "Couldn't chdir(foo): No such file or directory" --- stepmania/src/RageFileDriverDirect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index a4c52fd0ad..51aefdaa3c 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -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;