[BusyBox 0000794]: ldd fails with ash - "set -o" doesn't return nonzero exit status [PATCH attached]
bugs at busybox.net
bugs at busybox.net
Thu Feb 14 09:11:07 PST 2008
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=794
======================================================================
Reported By: wmb
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 794
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 03-21-2006 15:56 PST
Last Modified: 02-14-2008 09:11 PST
======================================================================
Summary: ldd fails with ash - "set -o" doesn't return nonzero
exit status [PATCH attached]
Description:
The "ldd" command is a shell script. (At least some versions of ...) the
script include the line:
if set -o pipefail 2> /dev/null; then
The intention is to test for the existence of the pipefail option.
When the busybox version of ash is used as /bin/sh, this line causes the
script to exit, instead of "set -o pipefile" returning nonzero exit status
and letting "if" do its thing. The net result is that "ldd" silently
exits, instead of doing its job of displaying library dependencies.
A patch to fix this is attached. The patch changes the behavior of the
"set" command so that instead of bailing out if presented with an
unrecognized argument to "-o", it returns exit status 1 (the same as
bash).
The patch is against the version of ash in Busybox 1.1.0
======================================================================
----------------------------------------------------------------------
vda - 02-14-08 09:11
----------------------------------------------------------------------
Fixed in svn, will be in 1.10.0
Issue History
Date Modified Username Field Change
======================================================================
03-21-06 15:56 wmb New Issue
03-21-06 15:56 wmb Status new => assigned
03-21-06 15:56 wmb Assigned To => BusyBox
03-21-06 15:56 wmb File Added: ash.patch
02-14-08 09:11 vda Status assigned => closed
02-14-08 09:11 vda Note Added: 0004734
======================================================================
More information about the busybox-cvs
mailing list