]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Don't load module.la from current directory by default.
authorBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Sat, 14 Nov 2009 19:52:24 +0000 (13:52 -0600)
committerPeter O'Gorman <peter@pogma.com>
Sun, 15 Nov 2009 20:20:07 +0000 (14:20 -0600)
* libltdl/ltdl.c (try_dlopen): Do not attempt to load an
unqualified module.la file from the current directory (by
default) since doing so is insecure and is not compliant with
the documentation.
* tests/testsuite.at: Qualify access to module.la file in
current directory so that test passes.

ChangeLog
libltdl/ltdl.c
tests/testsuite.at

index 8517147407d1151685dd35c6ff546d1d88777db9..bf52f46b0819c1150713be7ad6e1e799cdab39cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-11-14  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+       Don't load module.la from current directory by default.
+       * libltdl/ltdl.c (try_dlopen): Do not attempt to load an
+       unqualified module.la file from the current directory (by
+       default) since doing so is insecure and is not compliant with
+       the documentation.
+       * tests/testsuite.at: Qualify access to module.la file in
+       current directory so that test passes.
+
 2009-11-14  Peter O'Gorman  <peter@pogma.com>
 
        Only use preopen loader to load preopened archives
index 1ce4479b0bfd8577327e6b6d712b9e8bd320e303..7c426351c7cdcf721764f8122569ea70052e518d 100644 (file)
@@ -1346,7 +1346,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
            }
 #endif
        }
-      if (!file)
+      else
        {
          file = fopen (attempt, LT_READTEXT_MODE);
        }
index 5037d1429dd685e5a433c87cb02161ce6e9692c1..c5898fdcddb616b1774ce204e9fba346d99b28cf 100644 (file)
@@ -288,9 +288,9 @@ main ()
     return 1;
   }
 
-  module = lt_dlopen("module.la");
+  module = lt_dlopen("./module.la");
   if (!module) {
-    fprintf (stderr, "error dlopening module.la: %s\n", lt_dlerror());
+    fprintf (stderr, "error dlopening ./module.la: %s\n", lt_dlerror());
     goto finish;
   }