? fs-1.diff Index: libs/filesystem/src/operations_posix_windows.cpp =================================================================== RCS file: /cvsroot/boost/boost/libs/filesystem/src/operations_posix_windows.cpp,v retrieving revision 1.39 diff -u -p -r1.39 operations_posix_windows.cpp --- libs/filesystem/src/operations_posix_windows.cpp 9 Oct 2004 20:25:06 -0000 1.39 +++ libs/filesystem/src/operations_posix_windows.cpp 25 Oct 2004 14:08:42 -0000 @@ -425,9 +425,8 @@ namespace boost # ifdef BOOST_POSIX struct stat s1; int s1_result = ::stat( ph1.string().c_str(), &s1 ); - int error1; // save error code in case we have to throw - if ( s1_result != 0 ) - error1 = fs::detail::system_error_code(); + // save error code in case we have to throw + int error1 = (s1_result != 0 ? fs::detail::system_error_code() : 0); struct stat s2; int s2_result = ::stat( ph2.string().c_str(), &s2 ); if ( s1_result != 0