summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/modctl.c
diff options
context:
space:
mode:
authorcth <none@none>2005-08-06 19:19:22 -0700
committercth <none@none>2005-08-06 19:19:22 -0700
commit5c3113005025c7746cee7871e37f22045f093f96 (patch)
treef9df80b7eb361e305f32fcceceae0460a5fea44d /usr/src/uts/common/os/modctl.c
parent43a291055ab3951f6372241323fd4e2486098fff (diff)
downloadillumos-gate-5c3113005025c7746cee7871e37f22045f093f96.tar.gz
6302583 modload with absolute paths does not work in snv_20
Diffstat (limited to 'usr/src/uts/common/os/modctl.c')
-rw-r--r--usr/src/uts/common/os/modctl.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr/src/uts/common/os/modctl.c b/usr/src/uts/common/os/modctl.c
index 84aa333ce7..752ca7840c 100644
--- a/usr/src/uts/common/os/modctl.c
+++ b/usr/src/uts/common/os/modctl.c
@@ -2262,23 +2262,16 @@ mod_hold_installed_mod(char *name, int usepath, int *r)
{
struct modctl *modp;
int retval;
- struct _buf *file;
/*
* Verify that that module in question actually exists on disk
* before allocation of module structure by mod_hold_by_name.
*/
if (modrootloaded && swaploaded) {
- file = kobj_open_path(name, usepath, 1);
-#ifdef MODDIR_SUFFIX
- if (file == (struct _buf *)-1)
- file = kobj_open_path(name, usepath, 0);
-#endif /* MODDIR_SUFFIX */
- if (file == (struct _buf *)-1) {
+ if (!kobj_path_exists(name, usepath)) {
*r = ENOENT;
return (NULL);
}
- kobj_close_file(file);
}
/*