[klibc] [PATCH] kinit.c:get_arg()

Thayne Harbaugh tharbaugh at lnxi.com
Wed Jan 5 00:50:35 PST 2005


There's an "if" statement in kinit.c:get_arg() that is too restrictive
and prevents args from having arguments - which causes all get_arg()
calls to fail:

--- klibc-0.194/kinit/kinit.c.orig	2005-01-05 01:34:50.680645456 -0700
+++ klibc-0.194/kinit/kinit.c	2005-01-05 01:38:30.740191320 -0700
@@ -168,7 +168,7 @@
 
 	for (i = 1; i < argc; i++) {
 		if (argv[i] && strncmp(argv[i], name, len) == 0 &&
-		    (argv[i][len] == '\0')) {
+		    (argv[i][len] != '\0')) {
 			ret = argv[i] + len;
 			break;
 		}

-- 
Thayne Harbaugh
Linux Networx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.zytor.com/pipermail/klibc/attachments/20050105/1ee669df/attachment.bin


More information about the klibc mailing list