From 0421d5e4cccdf43055681e5843d9a23c5e167d84 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 16 Jun 2014 20:51:40 +0000 Subject: [PATCH] actually, just check if it is a file (including directory or symlink) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211053 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/scan-build/scan-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index b740cd21e6..e66b185aff 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -208,7 +208,7 @@ sub GetHTMLRunDir { } # Make sure that the directory does not exist in order to avoid hijack. - if (-d $NewDir) { + if (-e $NewDir) { DieDiag("The directory '$NewDir' already exists.\n"); }