[BusyBox 0000794]: ldd fails with ash - "set -o" doesn't return nonzero exit status [PATCH attached]

bugs at busybox.net bugs at busybox.net
Tue Mar 21 23:56:33 UTC 2006


The following issue has been SUBMITTED. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             03-21-2006 15:56 PST
Last Modified:              03-21-2006 15:56 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


====================================================================== 

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                        
======================================================================




More information about the busybox-cvs mailing list