Tags: patch

Attached is a patch that works around the issue. Apparently, invoke-rc.d leaves junk in the standard file descriptors (no newline?). Debconf is then affected when it uses shell's "read". By redirecting the output to null, everything appears to work as before.

To give some feedback to the user, perhaps some other message could be printed by DebianNet.pm instead.

This would be really good to have in etch as it was only recently broken.

--Pat
--- DebianNet.pm.orig   2007-02-21 14:54:19.000000000 -0500
+++ DebianNet.pm        2007-02-21 14:49:42.000000000 -0500
@@ -235,7 +235,7 @@
         $_ = glob "/etc/init.d/*inetd";
         if (m/\/etc\/init\.d\/(.*inetd)/) {
             my $service = $1;
-            system("invoke-rc.d $service restart");
+            system("invoke-rc.d $service restart > /dev/null");
         }
     }
     return(1);

Reply via email to