mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-12-01 03:32:55 +00:00
16 lines
394 B
Diff
16 lines
394 B
Diff
|
--- a/tools/clang/tools/scan-build/scan-build
|
||
|
+++ b/tools/clang/tools/scan-build/scan-build
|
||
|
@@ -204,6 +204,12 @@
|
||
|
else {
|
||
|
$NewDir = "$Dir/$DateString-$RunNumber";
|
||
|
}
|
||
|
+
|
||
|
+ # Make sure that the directory does not exist in order to avoid hijack.
|
||
|
+ if (-d $NewDir) {
|
||
|
+ DieDiag("The directory '$NewDir' already exists.\n");
|
||
|
+ }
|
||
|
+
|
||
|
system 'mkdir','-p',$NewDir;
|
||
|
return $NewDir;
|
||
|
}
|