]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use mktemp to fix SC2186; also, fix SC2006.
authorrl1987 <rl1987@sdf.lonestar.org>
Wed, 6 Feb 2019 08:27:16 +0000 (10:27 +0200)
committerrl1987 <rl1987@sdf.lonestar.org>
Wed, 6 Feb 2019 08:27:16 +0000 (10:27 +0200)
contrib/dirauth-tools/nagios-check-tor-authority-cert

index 7a60da16f0d745220cf9f889e1feb4a6aa5ef172..932a780618e9eef08267789929cbeca65e112cb5 100755 (executable)
@@ -49,7 +49,7 @@ DIRSERVERS="$DIRSERVERS 80.190.246.100:80"      # gabelmoo
 DIRSERVERS="$DIRSERVERS 194.109.206.212:80"     # dizum
 DIRSERVERS="$DIRSERVERS 213.73.91.31:80"        # dannenberg
 
-TMPFILE="`tempfile`"
+TMPFILE=$(mktemp)
 trap 'rm -f "$TMPFILE"' 0
 
 for dirserver in $DIRSERVERS; do