Bug#46808: dpkg: update-rc.d regexp error
Package: dpkg
Version: 1.4.1.13
There is an error in the /^start|stop$/ regexp; it should have
parentheses. Here is a patch.
--- update-rc.d.orig Wed Oct 6 15:54:12 1999
+++ update-rc.d Wed Oct 6 15:55:51 1999
@@ -52,10 +52,10 @@
}
$_ = $ARGV[0];
-if (/^remove$/) { &checklinks ("remove"); }
-elsif (/^defaults$/) { &defaults; &makelinks }
-elsif (/^start|stop$/) { &startstop; &makelinks; }
-else { &usage; }
+if (/^remove$/) { &checklinks ("remove"); }
+elsif (/^defaults$/) { &defaults; &makelinks }
+elsif (/^(start|stop)$/) { &startstop; &makelinks; }
+else { &usage; }
exit (0);
Julian
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Reply to: