[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ltdl never handles path vars
From: |
Golubev I. N. |
Subject: |
ltdl never handles path vars |
Date: |
Thu, 04 Oct 2001 16:23:54 (GMT) |
Version: 1.4.2
Current `find_handle_callback' calls `tryall_dlopen' only on
non-readable `filename's, and it always fails.
`find_handle_callback' is used to handle `LTDL_LIBRARY_PATH'
environment var and like. So without this fix one can not use those
vars to force finding libs in right (e. g., uninstalled) place.
* ltdl.c (find_handle_callback): fix `access' retval handling
--- ltdl.c 2001/09/25 17:20:29 1.1
+++ ltdl.c 2001/09/25 17:21:52 1.2
@@ -2253,7 +2253,7 @@
int found = access (filename, R_OK);
/* Bail out if file cannot be read... */
- if (!found)
+ if (found < 0)
return 0;
/* Try to dlopen the file, but do not continue searching in any
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ltdl never handles path vars,
Golubev I. N. <=