tags 409569 patch
thanks

On Sun, Feb 04, 2007 at 02:48:32AM +0100, Laurent Bigonville wrote:
> I updated my etch yesterday and the post-install script of the package
> pure-ftpd-common hangs forever just after printing "Stopping ftp
> server: pure-ftpd.". The script seems to hangs due to update-inetd.

> I use pure-ftpd with openbsd-inetd. I've added a line to activate ipv6,
> so my inetd.conf looks like:

> ftp     stream  tcp4    nowait root   /usr/sbin/tcpd 
> /usr/sbin/pure-ftpd-wrapper
> ftp     stream  tcp6    nowait root   /usr/sbin/tcpd 
> /usr/sbin/pure-ftpd-wrapper

> I was asked by update-inetd if I want to remove these multiple entries
> and I answered "no". If I answer "yes" or remove one of these entries
> the post-install script works.

I can confirm this behavior.

I'm not sure if it should be considered RC, but the attached patch fixes the
problem for me and looks correct.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/
diff -u pure-ftpd-1.0.21/debian/changelog pure-ftpd-1.0.21/debian/changelog
--- pure-ftpd-1.0.21/debian/changelog
+++ pure-ftpd-1.0.21/debian/changelog
@@ -1,3 +1,12 @@
+pure-ftpd (1.0.21-7.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * High-urgency upload for RC bugfix.
+  * Don't call db_stop at all in the postinst, fixing interaction problems
+    with update-inetd.  Closes: #409569.
+
+ -- Steve Langasek <[EMAIL PROTECTED]>  Tue,  6 Feb 2007 03:42:17 -0800
+
 pure-ftpd (1.0.21-7) unstable; urgency=medium
 
   * avoid builds with ancient libmysqlclient10
diff -u pure-ftpd-1.0.21/debian/pure-ftpd-common.postinst pure-ftpd-1.0.21/debian/pure-ftpd-common.postinst
--- pure-ftpd-1.0.21/debian/pure-ftpd-common.postinst
+++ pure-ftpd-1.0.21/debian/pure-ftpd-common.postinst
@@ -9,10 +9,6 @@
 SUID="$RET"
 db_get pure-ftpd/virtualchroot
 VCH="$RET"
-db_stop
-
-# clean up after debconf (this prevents a hang if update-inetd prompts)
-exec </dev/tty >/dev/tty 2>&1
 
 set -e
 

Reply via email to