Browse Source

check-lxdialog.sh: use mktemp for temporary file

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 15 years ago
parent
commit
b50fedbcd3
1 changed files with 1 additions and 1 deletions
  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
-tmp=.lxdialog.tmp
+tmp=$(mktemp)
 trap "rm -f $tmp" 0 1 2 3 15
 
 # Check if we can link to ncurses