This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2][BZ #832][BZ #3266] Make ldd try_trace more robust and portable


On Saturday 07 September 2013 11:45:45 Patrick "P. J." McDermott wrote:
> This is a second version of my previous ldd try_trace patch [1], with
> feedback from Dmitry V. Levin [2][3].
> 
> [1]: http://sourceware.org/ml/libc-alpha/2012-11/msg00663.html
> [2]: http://sourceware.org/ml/libc-alpha/2012-11/msg00736.html
> [3]: http://sourceware.org/ml/libc-alpha/2013-06/msg01155.html

the commit message itself needs explanation.  only referring to previous 
mailing list entries is not sufficient.

> -# The following use of cat is needed to make ldd work in SELinux
> -# environments where the executed program might not have permissions
> -# to write to the console/tty.  But only bash 3.x supports the pipefail
> -# option, and we don't bother to handle the case for older bash versions.
> -if set -o pipefail 2> /dev/null; then

this seems like a simpler fix:
	if (set -o pipefail) 2>/dev/null; then

that works with dash and bash-2.05
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]