LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [patch] Don't assume arguments to init have no period in them.
@ 2007-02-22 19:40 Rob Landley
  0 siblings, 0 replies; only message in thread
From: Rob Landley @ 2007-02-22 19:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

Signed-off-by: Rob Landley <rob@landley.net>

The kernel assumes that nobody will ever legitimately feed in a kernel command 
line option with a period in it, and the kernel is wrong: I'm feeding the 
path to a script as an argument to my init program, the name of the script 
ends in .sh.

I've been using this patch ever since 2.6.13, and I still need it.

--- linux-old/init/main.c	2005-09-09 21:42:58.000000000 -0500
+++ linux-new/init/main.c	2005-10-24 02:07:37.683498720 -0500
@@ -242,15 +242,6 @@
 	if (obsolete_checksetup(param))
 		return 0;
 
-	/*
-	 * Preemptive maintenance for "why didn't my mispelled command
-	 * line work?"
-	 */
-	if (strchr(param, '.') && (!val || strchr(param, '.') < val)) {
-		printk(KERN_ERR "Unknown boot option `%s': ignoring\n", param);
-		return 0;
-	}
-
 	if (panic_later)
 		return 0;

-- 
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-22 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 19:40 [patch] Don't assume arguments to init have no period in them Rob Landley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).