summaryrefslogtreecommitdiffstats
path: root/libtool-1.5.24-relativepath.patch
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@fedoraproject.org>2007-07-27 11:12:12 +0000
committerKarsten Hopp <karsten@fedoraproject.org>2007-07-27 11:12:12 +0000
commitdfb30ff597cf2a018d68731239abc3e277e895ae (patch)
tree02938bb4f673bf78ec649efe1c4f832013223f2e /libtool-1.5.24-relativepath.patch
parent2d8e40b31eb4cfde97e312615ea7af7d58c9183e (diff)
-update to 1.5.24
Diffstat (limited to 'libtool-1.5.24-relativepath.patch')
-rw-r--r--libtool-1.5.24-relativepath.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/libtool-1.5.24-relativepath.patch b/libtool-1.5.24-relativepath.patch
new file mode 100644
index 0000000..1549b2f
--- /dev/null
+++ b/libtool-1.5.24-relativepath.patch
@@ -0,0 +1,14 @@
+diff -up libtool-1.5.24/libltdl/ltdl.c.relativepath libtool-1.5.24/libltdl/ltdl.c
+--- libtool-1.5.24/libltdl/ltdl.c.relativepath 2007-06-01 07:04:54.000000000 +0200
++++ libtool-1.5.24/libltdl/ltdl.c 2007-07-24 12:56:22.000000000 +0200
+@@ -3225,7 +3225,9 @@ try_dlopen (phandle, filename)
+ }
+ if (!file)
+ {
+- file = fopen (filename, LT_READTEXT_MODE);
++ /* don't open .la files in current directory, root might get tricked to run a binary in a prepared directory */
++ if(!strncmp((filename + strlen(filename) - 3), LTDL_ARCHIVE_EXT,3) || strstr(filename,"/"))
++ file = fopen (filename, LT_READTEXT_MODE);
+ }
+
+ /* If we didn't find the file by now, it really isn't there. Set