"none" entries in /proc/mounts, added a hack to make sysinfo
work with both old and new kernels).
* Fixed a nasty bug in tar when could mess up saved symlinks.
+ * Fixed insmod module option parsing for options lacking an '='.
+ Fix thanks to Marc Nijdam <marc_nijdam@hp.com>
-Erik Andersen
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.10 2000/06/22 18:19:31 andersen Exp $"
+#ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.10 2000/06/22 18:19:31 andersen Exp $"
+#ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
int *loc;
p = *argv;
- if ((q = strchr(p, '=')) == NULL)
+ if ((q = strchr(p, '=')) == NULL) {
+ argc--;
continue;
+ }
*q++ = '\0';
sym = obj_find_symbol(f, p);
int min, max, n;
p = *argv;
- if ((q = strchr(p, '=')) == NULL)
+ if ((q = strchr(p, '=')) == NULL) {
+ argc--;
continue;
+ }
key = alloca(q - p + 6);
memcpy(key, "parm_", 5);
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.10 2000/06/22 18:19:31 andersen Exp $"
+#ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.10 2000/06/22 18:19:31 andersen Exp $"
+#ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
int *loc;
p = *argv;
- if ((q = strchr(p, '=')) == NULL)
+ if ((q = strchr(p, '=')) == NULL) {
+ argc--;
continue;
+ }
*q++ = '\0';
sym = obj_find_symbol(f, p);
int min, max, n;
p = *argv;
- if ((q = strchr(p, '=')) == NULL)
+ if ((q = strchr(p, '=')) == NULL) {
+ argc--;
continue;
+ }
key = alloca(q - p + 6);
memcpy(key, "parm_", 5);