diff options
author | Patrick 'P. J.' McDermott <pj@pehjota.net> | 2013-09-11 23:13:36 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-10-14 01:57:46 -0400 |
commit | 94bf958a9435b8d8fbf92c15d8cd5d310029a22c (patch) | |
tree | 5b7d470cf9375acd4f7d1e5ee1711a65f9ac64e2 /ChangeLog | |
parent | 0abe1dd5368a91601dabcda484ecd873a5789497 (diff) | |
download | glibc-94bf958a9435b8d8fbf92c15d8cd5d310029a22c.tar.gz glibc-94bf958a9435b8d8fbf92c15d8cd5d310029a22c.tar.xz glibc-94bf958a9435b8d8fbf92c15d8cd5d310029a22c.zip |
ldd: make try_trace more robust and portable
It was noted in 2005 (BZ #832), 2006 (BZ #3266), and 2007 [1] that ldd fails on shells other than Bash >= 3.0 because of the pipefail option around try_trace (added on 2004-12-08). EGLIBC was patched in 2008 [2] (r6912) to make the pipefail check run only on shells that support it, but RTLD output would still be lost on other shells with certain SELinux policies. This patch rewrites try_trace to work on any POSIX-conformant shell in such a way as to also work with such SELinux policies. It also obviates one difference between glibc and EGLIBC. URL: https://sourceware.org/ml/libc-alpha/2007-01/msg00041.html URL: http://www.eglibc.org/archives/patches/msg00526.html 2013-09-11 P. J. McDermott <pj@pehjota.net> [BZ #832] * elf/ldd.bash.in (try_trace): More robustly and portably work around SELinux terminal write permissions by using a command substitution instead of a pipeline and pipefail option.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2c32f27cf7..432c0416d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-10-14 P. J. McDermott <pj@pehjota.net> + + [BZ #832] + * elf/ldd.bash.in (try_trace): New function. Delete previous code + testing pipefail option. + 2013-10-12 Joseph Myers <joseph@codesourcery.com> * soft-fp/double.h: Indent preprocessor directives inside #if. |