[klibc] [PATCH] bug in nfsmount/main.c parse_int()

Olaf Hering olh at suse.de
Sat Nov 22 19:17:00 PST 2003


I'm booting with nfs options, but klibc doesnt like the rsize= option.
This patch fixes it.

console=ttyS0,38400 rw ip=eth0 root=/dev/nfs nfsroot=192.168.1.2:/nfsroot/mac,rsize=8192,wsize=8192,tcp kinit=/bin/kinit


--- usr/klibc/klibc-0.81.orig/nfsmount/main.c   2003-05-06 00:15:09.000000000 +0200
+++ usr/klibc/klibc-0.81/nfsmount/main.c        2003-11-22 19:14:18.000000000 +0100
@@ -80,7 +80,7 @@ static int parse_int(const char *val, co
        int ret;

        ret = (int) strtoul(val, &end, 0);
-       if (val == '\0' || end != '\0') {
+       if (val == '\0' || *end != '\0') {
                fprintf(stderr, "%s: invalid value for %s\n", val, ctx);
                exit(1);
        }

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list