[Initscripts-ng-commits] r724 - in /trunk/src/insserv/debian: changelog update-rc.d-insserv

pere at users.alioth.debian.org pere at users.alioth.debian.org
Sun Mar 9 08:58:05 UTC 2008


Author: pere
Date: Sun Mar  9 08:58:04 2008
New Revision: 724

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=724
Log:
  * Make sure the dependency based update-rc.d check the argument list
    slightly, to avoid bugs like #470062.

Modified:
    trunk/src/insserv/debian/changelog
    trunk/src/insserv/debian/update-rc.d-insserv

Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=724&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun Mar  9 08:58:04 2008
@@ -1,6 +1,8 @@
 insserv (1.11.0-7) UNRELEASED; urgency=low
 
   * Added override files for digitools and ddns3-client.
+  * Make sure the dependency based update-rc.d check the argument list
+    slightly, to avoid bugs like #470062.
 
  -- Petter Reinholdtsen <pere at debian.org>  Mon,  3 Mar 2008 09:04:45 +0100
 

Modified: trunk/src/insserv/debian/update-rc.d-insserv
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/update-rc.d-insserv?rev=724&op=diff
==============================================================================
--- trunk/src/insserv/debian/update-rc.d-insserv (original)
+++ trunk/src/insserv/debian/update-rc.d-insserv Sun Mar  9 08:58:04 2008
@@ -20,9 +20,11 @@
         # what to look for.
         exec "insserv", @opts;
     }
+} elsif ("defaults" eq $ARGV[1] || "start" eq $ARGV[1] || "stop" eq $ARGV[1]) {
+    # Ignore start/stop/defaults arguments, just add it
+    exec "insserv", @opts, $scriptname;
 } else {
-    # Ignore start/stop/etc arguments, just add it
-    exec "insserv", @opts, $scriptname;
+    usage();
 }
 
 sub usage {




More information about the Initscripts-ng-commits mailing list