You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/12/03 23:23:32 UTC
cvs commit: xml-xalan/c/Tests/Harness FileUtility.cpp
dbertoni 01/12/03 14:23:32
Modified: c/Tests/Harness FileUtility.cpp
Log:
Make sure to reset the current directory back after changing to see if it exists.
Revision Changes Path
1.27 +8 -7 xml-xalan/c/Tests/Harness/FileUtility.cpp
Index: FileUtility.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Harness/FileUtility.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- FileUtility.cpp 2001/12/03 21:28:56 1.26
+++ FileUtility.cpp 2001/12/03 22:23:31 1.27
@@ -144,15 +144,16 @@
getcwd(buffer, PATH_MAX);
- if ( chdir(c_str(TranscodeToLocalCodePage(directory))) )
+ bool fResult = false;
+
+ if ( !chdir(c_str(TranscodeToLocalCodePage(directory))) )
{
- chdir(buffer);
- return false;
+ fResult = true;
}
- else
- {
- return true;
- }
+
+ chdir(buffer);
+
+ return fResult;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org