r211053 - actually, just check if it is a file (including directory or symlink)

Sylvestre Ledru sylvestre at debian.org
Mon Jun 16 13:51:40 PDT 2014


Author: sylvestre
Date: Mon Jun 16 15:51:40 2014
New Revision: 211053

URL: http://llvm.org/viewvc/llvm-project?rev=211053&view=rev
Log:
actually, just check if it is a file (including directory or symlink)

Modified:
    cfe/trunk/tools/scan-build/scan-build

Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=211053&r1=211052&r2=211053&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Mon Jun 16 15:51:40 2014
@@ -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");
   }
 





More information about the cfe-commits mailing list