Package: fai-client
Version: 3.1.3
Severity: normal
Tags: patch

two small problems in fai-debconf:
1) debconf-copydb moves $tmpdb to $tmpdb-old before writing, which 
   left behind one /tmp/tmp.XXXXXXXXX-old for each softupdate run on 
   the machine

2) mktemp is called without a filename-pattern, which made finding
   that fai-debconf is the script to blame for the left-behind tmpfile a
   very hard job


Index: fai-debconf
===================================================================
--- fai-debconf (revision 4210)
+++ fai-debconf (working copy)
@@ -69,7 +69,7 @@
      fi
      packages=$(awk '{print $1}' $LOGDIR/debconf.data | sort | uniq)
      # backup database
-     tmpdb=$($ROOTCMD mktemp)
+     tmpdb=$($ROOTCMD mktemp -t fai-debconf.XXXXXXXXXX)
      $ROOTCMD debconf-copydb configdb faidb --config=Name:faidb 
--config=Driver:File --config=Filename:$tmpdb
      for p in $packages; do
         # test if package is installed
@@ -82,7 +82,7 @@
             # echo "Package $p is not yet installed. Skipping reconfiguration."
         fi
      done
-     rm $target/$tmpdb
+     rm -f $target/$tmpdb $target/$tmpdb-old
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 usage() {

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages fai-client depends on:
ii  cfengine2                     2.1.20-1   Tool for configuring and maintaini
ii  file                          4.17-5     Determines file type using "magic"
ii  libapt-pkg-perl               0.1.20     Perl interface to libapt-pkg
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 

fai-client recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to