[Initscripts-ng-commits] r822 - in /trunk/src/insserv/debian: changelog patches/00list patches/70_lvl2str_runlevel_S_offbyone.dpatch

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Mon Jul 28 09:10:38 UTC 2008


Author: kelmo-guest
Date: Mon Jul 28 09:10:38 2008
New Revision: 822

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=822
Log:
Add 70_lvl2str_runlevel_S_offbyone.dpatch to fix off-by-one error
stopping lvl2str function from considering last runlevel in
runlevel_locations[] array.

Added:
    trunk/src/insserv/debian/patches/70_lvl2str_runlevel_S_offbyone.dpatch
Modified:
    trunk/src/insserv/debian/changelog
    trunk/src/insserv/debian/patches/00list

Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=822&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Mon Jul 28 09:10:38 2008
@@ -55,8 +55,11 @@
   * Now we have no overrides to install by default, but we may in future,
     modify debian/rules to only install overrides from ./debian/overrides/* if
     they are present, but not fail otherwise.
-
- -- Kel Modderman <kel at otaku42.de>  Sun, 27 Jul 2008 16:04:07 +1000
+  * Add 70_lvl2str_runlevel_S_offbyone.dpatch to fix off-by-one error
+    stopping lvl2str function from considering last runlevel in
+    runlevel_locations[] array.
+
+ -- Kel Modderman <kel at otaku42.de>  Mon, 28 Jul 2008 19:01:56 +1000
 
 insserv (1.11.0-9) 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=822&op=diff
==============================================================================
--- trunk/src/insserv/debian/patches/00list (original)
+++ trunk/src/insserv/debian/patches/00list Mon Jul 28 09:10:38 2008
@@ -1,4 +1,5 @@
 10_nosuse
 31_debian_conf
+70_lvl2str_runlevel_S_offbyone
 81_debian_default_start_stop_warnings
 90_fix_bashism_in_makefile

Added: trunk/src/insserv/debian/patches/70_lvl2str_runlevel_S_offbyone.dpatch
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/70_lvl2str_runlevel_S_offbyone.dpatch?rev=822&op=file
==============================================================================
--- trunk/src/insserv/debian/patches/70_lvl2str_runlevel_S_offbyone.dpatch (added)
+++ trunk/src/insserv/debian/patches/70_lvl2str_runlevel_S_offbyone.dpatch Mon Jul 28 09:10:38 2008
@@ -1,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 70_lvl2str_runlevel_S_offbyone.dpatch by Kel Modderman <kel at otaku42.de>
+##
+## DP: Purpose: Fix lvl2str so that it considers the last runlevel in
+## DP:          RUNLEVELES for conversion.
+## DP: Status:  Submitted upstream.
+
+ at DPATCH@
+--- a/insserv.c
++++ b/insserv.c
+@@ -1605,7 +1605,7 @@
+ 
+     last = ptr = &str[0];
+     memset(ptr, '\0', sizeof(str));
+-    for (num = 0; num < RUNLEVLES; num++) {
++    for (num = 0; num <= RUNLEVLES; num++) {
+ 	if (bit & lvl) {
+ 	    if (ptr > last)
+ 		*ptr++ = ' ';




More information about the Initscripts-ng-commits mailing list