Module Name:    src
Committed By:   pooka
Date:           Tue Jul 21 00:19:57 UTC 2009

Modified Files:
        src/lib/libukfs: ukfs.c

Log Message:
Can't see any reason to stat() the .so before dlopen(), so get rid
of that call.  uses normal ldlib paths now


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libukfs/ukfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libukfs/ukfs.c
diff -u src/lib/libukfs/ukfs.c:1.28 src/lib/libukfs/ukfs.c:1.29
--- src/lib/libukfs/ukfs.c:1.28	Fri May 22 08:59:53 2009
+++ src/lib/libukfs/ukfs.c	Tue Jul 21 00:19:57 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: ukfs.c,v 1.28 2009/05/22 08:59:53 pooka Exp $	*/
+/*	$NetBSD: ukfs.c,v 1.29 2009/07/21 00:19:57 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007, 2008  Antti Kantee.  All Rights Reserved.
@@ -716,12 +716,8 @@
 {
 	void *handle;
 	struct modinfo **mi;
-	struct stat sb;
 	int error;
 
-	if (stat(fname, &sb) == -1)
-		return -1;
-
 	handle = dlopen(fname, RTLD_GLOBAL);
 	if (handle == NULL) {
 		const char *dlmsg = dlerror();

Reply via email to