Re: [kaos@ocs.com.au: modutils 2.1.23 dislikes 2.0.29-ISS]

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Tue, 4 Mar 1997 18:26:29 +0000 (GMT)


On Tue, 4 Mar 1997, David S. Miller wrote:

>
> This was just sent to me.
>

That patch again without the extra quoting. Kind of ironic that it was
on the lines beginning with a '-' ....
Bryn
> ------- Start of forwarded message -------
[...]
diff -ur modutils-2.1.23.orig/insmod/insmod.c modutils-2.1.23/insmod/insmod.c
--- modutils-2.1.23.orig/insmod/insmod.c Thu Jan 23 09:37:49 1997
+++ modutils-2.1.23/insmod/insmod.c Tue Mar 4 13:27:40 1997
@@ -156,7 +156,7 @@
if (*p != '.')
return -1;
c = strtoul(p+1, &p, 10);
- if (*p != '\0')
+ if (*p != '\0' && *p != '-' && *p != '_' && *p != '#' && *p != '.')
return -1;

return a << 16 | b << 8 | c;
@@ -496,7 +496,7 @@
if (*p != '.')
return -1;
c = strtoul(p+1, &p, 10);
- if (*p != '\0')
+ if (*p != '\0' && *p != '-' && *p != '_' && *p != '#' && *p != '.')
return -1;

return a << 16 | b << 8 | c;
@@ -834,7 +834,7 @@
if (*p != '.')
return -1;
c = strtoul(p+1, &p, 10);
- if (*p != '\0')
+ if (*p != '\0' && *p != '-' && *p != '_' && *p != '#' && *p != '.')
return -1;

return a << 16 | b << 8 | c;
------- End of forwarded message -------

--
PGP key pass phrase forgotten,   \ Overload -- core meltdown sequence 
again :( and I don't care ;)      |            initiated.
                                 / This space is intentionally left   
                                |  blank, apart from this text ;-)
                                 \____________________________________