File: tempfile.patch

package info (click to toggle)
discover 2.1.2-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 6,756 kB
  • sloc: sh: 7,862; ansic: 7,280; xml: 1,809; makefile: 680
file content (13 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git b/scripts/discover-pkginstall a/scripts/discover-pkginstall
index b5d994e..47e1ec0 100755
--- b/scripts/discover-pkginstall
+++ a/scripts/discover-pkginstall
@@ -140,7 +140,7 @@ if [ "$packages" ] ; then
         # Trick to avoid locking the debconf database when installing
         # packages.  The redirects are gross hacks to work around
         # debconf file descriptor handling
-        tempfile=$(tempfile)
+        tempfile=$(mktemp)
         DISCOVER_PKGINSTALL_ASKING=true $0 $packages 8>$tempfile
         packages=$(cat $tempfile)
         rm $tempfile