Package: nvi
Version: 1.79-25
Severity: normal
Tags: patch
/etc/init.d/nviboot calls "su" with the wrong syntax, resulting in a "syntax
error" that goes unnoticed because stderr is redirected to /dev/null.
please see the attached patch.
regards.
-- giuseppe
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages nvi depends on:
ii libc6 2.3.6.ds1-13etch4 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
nvi recommends no packages.
-- no debconf information
--- /tmp/nviboot 2006-10-15 14:13:45.000000000 +0200
+++ /etc/init.d/nviboot 2008-02-14 11:57:11.000000000 +0100
@@ -76,7 +76,7 @@
if test -n "$recfile" -a -s "$recfile"; then
sessions_found="yes"
owner=`stat --format='%U' $recfile`
- (su - nobody -c $SENDMAIL $owner < $i &) </dev/null
>/dev/null 2>&0
+ (su - nobody -c "$SENDMAIL $owner" < $i &) </dev/null
>/dev/null 2>&0
else
rm -f $i
fi