diff options
author | erich <erich@FreeBSD.org> | 1996-04-26 18:39:48 +0000 |
---|---|---|
committer | erich <erich@FreeBSD.org> | 1996-04-26 18:39:48 +0000 |
commit | b5930c77886c89cfe167219677a5514103e4dfd5 (patch) | |
tree | b2eaa13bc2aa4bfb06c6de3e457a5bdf8b272bc8 /sbin | |
parent | c9ab94c87851a11ea16d63c4d8871163784d2f90 (diff) | |
download | FreeBSD-src-b5930c77886c89cfe167219677a5514103e4dfd5.zip FreeBSD-src-b5930c77886c89cfe167219677a5514103e4dfd5.tar.gz |
changed a strchr to a strrchr so that modules with a `.' in the path
can be loaded (e.g. ./mymod.o)
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/modload/modload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index c8f737f..9f37f9c 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: modload.c,v 1.9 1995/10/28 13:06:11 peter Exp $ + * $Id: modload.c,v 1.10 1995/10/28 17:06:05 peter Exp $ */ #include <stdio.h> @@ -225,7 +225,7 @@ main(argc, argv) 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"); |