Преглед изворни кода

check-lxdialog.sh: use mktemp for temporary file

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard пре 15 година
родитељ
комит
b50fedbcd3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      package/config/lxdialog/check-lxdialog.sh

+ 1 - 1
package/config/lxdialog/check-lxdialog.sh

@@ -31,7 +31,7 @@ ccflags()
 }
 }
 
 
 # Temp file, try to clean up after us
 # Temp file, try to clean up after us
-tmp=.lxdialog.tmp
+tmp=$(mktemp)
 trap "rm -f $tmp" 0 1 2 3 15
 trap "rm -f $tmp" 0 1 2 3 15
 
 
 # Check if we can link to ncurses
 # Check if we can link to ncurses