]> arthur.barton.de Git - bup.git/commitdiff
configure.inc: name the tmpdir with a configure- prefix
authorRob Browning <rlb@defaultvalue.org>
Sun, 18 Aug 2019 17:26:22 +0000 (12:26 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Aug 2019 18:47:47 +0000 (13:47 -0500)
Aside from being a bit friendlier in general, this should also
decrease the chance an unexpected expansion could ever result in an
"rm -rf /".

Thanks to Greg Troxel for mentioning the concern.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
config/configure.inc

index b25ca509efddb2b648e629849e57cb0e205324d0..df5909a5e1a9af00ccebdc697cdeb4fba10ff32a 100644 (file)
@@ -594,7 +594,7 @@ MF_PATH_INCLUDE () {
 # and fd 5 points to what used to be fd 1
 #
 AC_INIT () {
-    __ac_tmpdir=$(mktemp -d)
+    __ac_tmpdir=$(mktemp -d configure-XXXXX)
     __config_files="config.cmd config.sub config.h config.mak config.log"
     __config_detritus="config.h.tmp"
     rm -f $__config_files $__config_detritus