Package: wu-ftpd
Severity: normal
The debian/init file should check the presence of the inetd and xinetd files
on startup. Attached patch fixes problem.
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid-updates
APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: i386 (i686)
Kernel: Linux 2.6.34-020634rc7-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u wu-ftpd-2.6.2/debian/init wu-ftpd-2.6.2/debian/init
--- wu-ftpd-2.6.2/debian/init
+++ wu-ftpd-2.6.2/debian/init
@@ -37,12 +37,12 @@
fi
# check that the FTP service isn't already enabled in inetd
-if [ -f /etc/inetd.conf ] && egrep '^ftp[[:space:]][[:space:]]*' /etc/inetd.conf >/dev/null; then
+if [ -f /etc/inetd.conf ] && [ -n `which inetd` ] && egrep '^ftp[[:space:]][[:space:]]*' /etc/inetd.conf >/dev/null; then
run_wu=0
fi
for FILE in /etc/xinetd.d/*netd.d; do
- if [ -f $FILE ] && egrep 'server[[:space:]]*=.*ftpd' $FILE > /dev/null; then
+ if [ -f $FILE ] && [ -n `which xinetd` ] && egrep 'server[[:space:]]*=.*ftpd' $FILE > /dev/null; then
run_wu=0
fi
done