[Pkg-sysvinit-devel] Bug#386500: Problem located

Arjan Oosting arjanoosting at home.nl
Fri Sep 8 09:08:06 UTC 2006


tags 386500 - unreproducible
tags 386523 - unreproducible
thanks

Hi,

I found the problem in update-rc.d. There is a little logic error in one
of the functions update-rc.d. After i fixed that it worked again:

arjan at nebula:~$ ls /etc/rcS.d/*udev*
/etc/rcS.d/S03udev  /etc/rcS.d/S36udev-mtab
arjan at nebula:~$ sudo update-rc.d udev start 03 S .
 System startup links for /etc/init.d/udev already exist.
arjan at nebula:~$ ls /etc/rcS.d/*udev*
/etc/rcS.d/S03udev  /etc/rcS.d/S36udev-mtab

I have included the patch below

--- /usr/sbin/update-rc.d.orig  2006-09-08 10:56:09.000000000 +0200
+++ /usr/sbin/update-rc.d       2006-09-08 11:02:32.000000000 +0200
@@ -108,7 +108,7 @@
            $fn = "$etcd$i.d/$_";
            $found = 1;
            $islnk = &is_link ($_[0], $fn, $bn);
-           next if (defined $_[0] and $_[0] ne 'remove');
+           next unless (defined $_[0] && $_[0] eq 'remove');
            if (! $islnk) {
                print "   $fn is not a link to ../init.d/$bn; not removing\n";
                next;

Greetings Arjan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dit berichtdeel is digitaal ondertekend
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20060908/d4ca9ccc/attachment-0001.pgp


More information about the Pkg-sysvinit-devel mailing list