Package: pop-before-smtp
Version: 1.28-6
Severity: normal
File: /etc/init.d/pop-before-smtp
Tags: patch

The variable "pid" has been renamed to "PID", but there's still
a call to the lowercase name.  As side effect, 'cat' hangs
indefinitely waiting for stdin (since no filename is given).
This bug affects only the command
        /etc/init.d/pop-before-smtp status

This is the simple fix:
================================================================
*** /tmp/pop-before-smtp.patch
--- /etc/init.d/pop-before-smtp.orig    Wed Mar 27 00:00:00 2002
+++ /etc/init.d/pop-before-smtp Tue Jan 25 16:51:04 2005
@@ -60,7 +60,7 @@
        $0 start
        ;;
   status)
-       p=`cat $pid 2>/dev/null`
+       p=`cat $PID 2>/dev/null`
        test -n "$p" || die "no pidfile for $DESC"
        kill -0 $p || die "$NAME[$p] is no longer running"
        ps -up $p
================================================================

Regards

Moreno


-- System Information
Debian Release: 3.0
Architecture: i386



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

Reply via email to