[Initscripts-ng-commits] r865 - in /trunk/src/insserv/debian: changelog patches/00list patches/60_all_keyword_start_only.dpatch run-testsuite

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Sun Sep 21 15:26:03 UTC 2008


Author: kelmo-guest
Date: Sun Sep 21 15:26:02 2008
New Revision: 865

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=865
Log:
* Add 60_all_keyword_start_only.dpatch to prevent Required-Stop: $all
  from modifying start link sort order.
* Make test_early_all() test suite function unconditionally fatal,
  this is an importan bug fixed by 60_all_keyword_start_only.dpatch.

Added:
    trunk/src/insserv/debian/patches/60_all_keyword_start_only.dpatch
Modified:
    trunk/src/insserv/debian/changelog
    trunk/src/insserv/debian/patches/00list
    trunk/src/insserv/debian/run-testsuite

Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=865&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun Sep 21 15:26:02 2008
@@ -4,7 +4,13 @@
   * New test test_early_all to control that $all only affect start or
     stop sequences.  Trying to reproduce issue reported in #485307.
 
- -- Petter Reinholdtsen <pere at debian.org>  Sun, 21 Sep 2008 07:28:58 +0200
+  [ Kel Modderman ]
+  * Add 60_all_keyword_start_only.dpatch to prevent Required-Stop: $all
+    from modifying start link sort order.
+  * Make test_early_all() test suite function unconditionally fatal,
+    this is an importan bug fixed by 60_all_keyword_start_only.dpatch.
+
+ -- Kel Modderman <kel at otaku42.de>  Mon, 22 Sep 2008 01:24:50 +1000
 
 insserv (1.12.0-3) unstable; urgency=low
 

Modified: trunk/src/insserv/debian/patches/00list
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/00list?rev=865&op=diff
==============================================================================
--- trunk/src/insserv/debian/patches/00list (original)
+++ trunk/src/insserv/debian/patches/00list Sun Sep 21 15:26:02 2008
@@ -3,3 +3,4 @@
 30_deterministic_order
 40_badboy_segfault
 50_symlink_in_initddir
+60_all_keyword_start_only

Added: trunk/src/insserv/debian/patches/60_all_keyword_start_only.dpatch
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/60_all_keyword_start_only.dpatch?rev=865&op=file
==============================================================================
--- trunk/src/insserv/debian/patches/60_all_keyword_start_only.dpatch (added)
+++ trunk/src/insserv/debian/patches/60_all_keyword_start_only.dpatch Sun Sep 21 15:26:02 2008
@@ -1,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 60_all_keyword_start_only.patch by Kel Modderman <kel at otaku42.de>
+##
+## DP: Purpose: Prevent Required-Stop: $all from modifying start links
+## DP: Fixes:   #485307
+## DP: Status:  Work in progress.
+
+ at DPATCH@
+--- a/insserv.c
++++ b/insserv.c
+@@ -291,8 +291,13 @@
+ 	    break;
+ 	case '$':
+ 	    if (strcasecmp(token, "$all") == 0) {
+-		serv->attr.flags |= SERV_ALL;
+-		break;
++		if (bit & REQ_KILL) {
++		    /* $all has no effect on stop sort order */
++		    break;
++		} else {
++		    serv->attr.flags |= SERV_ALL;
++		    break;
++		}
+ 	    }
+ 	    /* Expand the `$' token recursively down */
+ 	    list_for_each(ptr, sysfaci_start) {

Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=865&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Sun Sep 21 15:26:02 2008
@@ -1751,7 +1751,7 @@
 check_script_present 2 early
 check_script_present 2 complex
 check_order 2 early complex
-${severity}_order 2 complex center
+check_order 2 complex center
 check_order 0 complex late
 }
 ##########################################################################




More information about the Initscripts-ng-commits mailing list