diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-12 10:40:14 -0400 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-12 10:40:14 -0400 |
commit | 219bcf25ba5d6dca20971373266c2d02e75b50e0 (patch) | |
tree | 5010709793c97ac0c78357d9211dba5066662459 /Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx | |
parent | 2dc914c8399c038946dd4569b4ff435ad9618426 (diff) | |
download | cmake-219bcf25ba5d6dca20971373266c2d02e75b50e0.tar.gz |
BUG: When removing directory, use lstat instead of stat to make sure that symlinks are treated as files and not as directories
Diffstat (limited to 'Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx b/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx index 024ed21fd0..57846568eb 100644 --- a/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx +++ b/Source/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx @@ -29,7 +29,9 @@ bool cmCTestEmptyBinaryDirectoryCommand::InitialPass( if ( !cmCTestScriptHandler::EmptyBinaryDirectory(args[0].c_str()) ) { - this->SetError("problem removing the binary directory"); + cmOStringStream ostr; + ostr << "problem removing the binary directory: " << args[0].c_str(); + this->SetError(ostr.str().c_str()); return false; } |