On Thu, 22 Dec 2005 01:10:52 -0500, Dmitry Torokhov <[EMAIL PROTECTED]> wrote:
> On Tuesday 20 December 2005 17:15, Pete Zaitcev wrote:
> > Fedora users complain that passing "nousbstorage" to the installer causes
> > the rest of the USB support to disappear. The installer uses kernel command
> > line as a way to pass options through Syslinux. The problem stems from the
> > use of strncmp() in obsolete_checksetup().
> I wonder if that strncmp() should be changed into something like
> this (untested):
>
> --- work.orig/init/main.c
> +++ work/init/main.c
> @@ -167,7 +167,7 @@ static int __init obsolete_checksetup(ch
> p = __setup_start;
> do {
> int n = strlen(p->str);
> - if (!strncmp(line, p->str, n)) {
> + if (!strncmp(line, p->str, n) && !isalnum(line[n])) {
> if (p->early) {
Are you sure that your fix works well in case of __setup("foo=")?
It probably breaks all of those.
-- Pete
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel