diff options
-rw-r--r-- | lib/libc/gen/getvfsent.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/gen/getvfsent.c b/lib/libc/gen/getvfsent.c index 469ef97..8aa147d 100644 --- a/lib/libc/gen/getvfsent.c +++ b/lib/libc/gen/getvfsent.c @@ -193,6 +193,7 @@ vfspath(const char *name) int vfsisloadable(const char *name) { +#if 0 int fd; fd = open("/dev/lkm", O_RDWR, 0); @@ -202,16 +203,24 @@ vfsisloadable(const char *name) close(fd); return !!vfspath(name); +#else + return 1; +#endif } int vfsload(const char *name) { - const char *path = vfspath(name); + const char *path; char name_mod[sizeof("_mod") + strlen(name)]; pid_t pid; int status; + status = kldload(name); + if (status != -1) + return 0; + + path = vfspath(name); if(!path) { errno = ENOENT; return -1; |