summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-04-15 06:25:58 +0000
committermdodd <mdodd@FreeBSD.org>2003-04-15 06:25:58 +0000
commitf6ae17d57c44b163fe0367205dedeef274e90aa6 (patch)
treeccc2224f28bbd23e7740b2e824602fde517718d0
parentba18538620b8b123eba6fba5a075efa8d211bb68 (diff)
downloadFreeBSD-src-f6ae17d57c44b163fe0367205dedeef274e90aa6.zip
FreeBSD-src-f6ae17d57c44b163fe0367205dedeef274e90aa6.tar.gz
Don't abuse module names to facilitate ifconfig module loading;
such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
-rw-r--r--sbin/ifconfig/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 1522450..ff220194 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1813,7 +1813,7 @@ ifmaybeload(char *name)
cp = mstat.name;
}
/* already loaded? */
- if (!strcmp(ifkind, cp))
+ if (!strncmp(name, cp, strlen(cp)))
return;
}
}
OpenPOWER on IntegriCloud