Browse Source

Use mktemp to fix SC2186; also, fix SC2006.

rl1987 5 years ago
parent
commit
2649239c62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/dirauth-tools/nagios-check-tor-authority-cert

+ 1 - 1
contrib/dirauth-tools/nagios-check-tor-authority-cert

@@ -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