Package: netsaint-plugins
Version: 1.2.9.4-18.1
Severity: grave
Tags: patch
Justification: causes non-serious data loss
In consequence of sh-syntax errors, the check_log script deletes
/bin/mktemp file if started as root (thus breaking an essential
package), never mind runs properly.
Unfortunately, i haven't figured out how to build that script from the
source (plugins-scripts/check_log.sh) and i submit this patch only for
information.
--- /tmp/tmp.orig/netsaint-plugins-1.2.9.4/plugins-scripts/check_log.sh Sat Apr
14 00:19:47 2001
+++ check_log Wed Apr 20 12:30:47 2005
@@ -62,12 +62,12 @@
ECHO="/bin/echo"
GREP="/bin/grep"
-DIFF="/bin/diff"
-TAIL="/bin/tail"
+DIFF="/usr/bin/diff"
+TAIL="/usr/bin/tail"
CAT="/bin/cat"
RM="/bin/rm"
-PROGNAME=`/bin/basename $0`
+PROGNAME=`/usr/bin/basename $0`
PROGPATH=`echo $0 | /bin/sed -e 's,[\\/][^\\/][^\\/]*$,,'`
REVISION=`echo '$Revision: 1.3.2.4 $' | /bin/sed -e 's/[^0-9.]//g'`
@@ -175,13 +175,13 @@
# The temporary file that the script should use while
# processing the log file.
-if [-x /bin/mktemp]; then
- tempdiff="/bin/mktemp /tmp/check_log.XXXXXXXXXX"
+if [ -x /bin/mktemp ]; then
+ tempdiff=`/bin/mktemp /tmp/check_log.XXXXXXXXXX`
else
date=`/bin/date '+%H%M%S'`
tempdiff="/tmp/check_log.$date"
/bin/touch $tempdiff
- chmod 600 $tempdiff
+ /bin/chmod 600 $tempdiff
fi
$DIFF $logfile $oldlog > $tempdiff
@@ -203,6 +203,6 @@
exitstatus=${STATE_WARNING}
fi
-exit exitstatus
+exit $exitstatus
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux spider 2.4.18 #1 Tue Jan 11 20:42:15 MSK 2005 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages netsaint-plugins depends on:
ii dnsutils 1:9.2.1-2.woody.2 Clients provided with BIND
ii libc6 2.2.5-11.8 GNU C Library: Shared libraries an
ii libssl0.9.6 0.9.6c-2.woody.7 SSL shared libraries
ii netkit-ping [ping] 0.10-9 The ping utility from netkit
ii perl [perl5] 5.6.1-8.9 Larry Wall's Practical Extraction
ii procps 1:2.0.7-8.woody1 The /proc file system utilities.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]