Date: Fri, 26 Apr 1996 11:19:06 -0500 From: "Eric L. Hernes" <erich@lodgenet.com> To: current@freebsd.org Subject: patch for modload Message-ID: <199604261619.LAA00651@jake.lodgenet.com>
next in thread | raw e-mail | index | archive | help
I ran across a little problem w/ modload.
it seems that modload can't load a module
with a . in it's path, you get an error
like:
(ttyp0@jake)$ sudo /sbin/modload -o linux_mod -elinux_mod ./linux_mod.o
modload: module object must end in .o
I changed a strchr() to a strrchr() and now
it works. Does this break anything?
Here's the trivial patch.
--- modload.c.orig Fri Apr 26 11:03:12 1996
+++ modload.c Fri Apr 26 11:03:19 1996
@@ -225,7 +225,7 @@
err(3, _PATH_LKM);
fileopen |= DEV_OPEN;
- p = strchr(modobj, '.');
+ p = strrchr(modobj, '.');
if (!p || strcmp(p, ".o"))
errx(2, "module object must end in .o");
eric.
--
erich@lodgenet.com
http://rrnet.com/~erich erich@rrnet.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604261619.LAA00651>
