[SM-Users] Simpleinit problem. Important!

Robert Helgesson rycee at home.se
Sat Jan 10 10:37:05 EST 2004


Due to an integer overflow error the init program no longer works
properly. When booting the entire process will function well up to the
point where the login prompt should appear. At that time a number of
error messages will appear, they will look like the following lines.

respawning: "tty1" too fast: quenching entry
respawning: "tty2" too fast: quenching entry
respawning: "tty3" too fast: quenching entry
... and so on

No login prompts appear and the only way to get access to the computer
is by using /bin/bash as a the init program or possibly through a rescue
disk.

The attached patch modifies the simpleinit-msb spell to apply a fix
during a cast. The fix should also soon be available in the grimoires.
Updating is very strongly recommended :)

-- 
/     Robert Helgesson     |--    rycee at home.se     --\
\-- GPG Key ID: 41E95A5B --|   http://www.rycee.cx/   /
-------------- next part --------------
diff -Nurp simpleinit-msb.orig/BUILD simpleinit-msb/BUILD
--- simpleinit-msb.orig/BUILD	2004-01-10 15:53:44.000000000 +0100
+++ simpleinit-msb/BUILD	2004-01-10 16:00:36.000000000 +0100
@@ -1,5 +1,8 @@
 (
 
+  # Fix nasty overflow bug
+  sedit  's/long ds_taken/long &/'  login-utils/simpleinit.c  &&
+
   ./configure                             &&
   make  OPT="$CFLAGS"                     &&
   prepare_install                         &&
diff -Nurp simpleinit-msb.orig/DETAILS simpleinit-msb/DETAILS
--- simpleinit-msb.orig/DETAILS	2004-01-10 15:53:44.000000000 +0100
+++ simpleinit-msb/DETAILS	2004-01-10 15:56:10.000000000 +0100
@@ -7,7 +7,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL
       LICENSE[0]=GPL
         WEB_SITE=http://www.winterdrache.de/linux/newboot/
          ENTERED=20030505
-         UPDATED=20030505
+         UPDATED=20040110
            SHORT="Simpleinit-MSB is a replacement for SysVinit."
 cat << EOF
 Simpleinit-MSB is a replacement for the SysVinit. It provides a simple way of
diff -Nurp simpleinit-msb.orig/HISTORY simpleinit-msb/HISTORY
--- simpleinit-msb.orig/HISTORY	2004-01-10 15:53:44.000000000 +0100
+++ simpleinit-msb/HISTORY	2004-01-10 15:56:42.000000000 +0100
@@ -1,3 +1,6 @@
+2004-01-10 Robert Helgesson <rycee at home.se>
+	* BUILD: Apply a fix to simpleinit.c which fixes an overflow bug.
+
 2003-12-02 Eric Sandall <eric at sandall.us>
 	* BUILD: Use INSTALL_ROOT
 	Should write a patch to change sysvtools/Makefile to use


More information about the SM-Users mailing list