Package: fai
Version: 2.8.1
Severity: serious
Tags: patch
* BUGFIX: create /tmp/fai only when DO_INIT_TASKS
/tmp/fai was created, but not used when performing softupdates and not
removed afterwards
basically, this violates policy 10.4, because:
Any scripts which create files in world-writeable directories (e.g.,
in `/tmp') must use a mechanism which will fail if a file with the
same name already exists.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages fai depends on:
ii debconf 1.4.30.13 Debian configuration management sy
ii libapt-pkg-perl 0.1.13 Perl interface to libapt-pkg
ii perl 5.8.4-8 Larry Wall's Practical Extraction
Tue May 3 19:43:52 CEST 2005 [EMAIL PROTECTED]
* BUGFIX: create /tmp/fai only when DO_INIT_TASKS
/tmp/fai was created, but not used when performing softupdates and not
removed afterwards
diff -rN -u old-pfai/scripts/fai new-pfai/scripts/fai
--- old-pfai/scripts/fai 2005-05-03 19:46:32.577839000 +0200
+++ new-pfai/scripts/fai 2005-05-03 19:40:47.000000000 +0200
@@ -111,7 +111,7 @@
# directory where temporary log files are stored
# set default value if nothing is set in fai.conf
- if [ -z "$LOGDIR" ]; then
+ if [ -z "$LOGDIR" -a $DO_INIT_TASKS -eq 1 ]; then
LOGDIR=/tmp/fai
mkdir -p $LOGDIR
fi