ChangeDir now returns the correct value

llvm-svn: 29361
This commit is contained in:
Patrick Jenkins 2006-07-27 20:21:26 +00:00
parent d1a714e503
commit 5afcc63123
1 changed files with 2 additions and 1 deletions

View File

@ -305,8 +305,9 @@ sub ChangeDir { # directory, logical name
$result = chdir($dir); $result = chdir($dir);
if(!$result){ if(!$result){
print "ERROR!!! Cannot change directory to: $name ($dir) because $!"; print "ERROR!!! Cannot change directory to: $name ($dir) because $!";
return -1; return false;
} }
return true;
} }
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~