Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 182522

Summary: ldd broken if /bin/sh is not bash
Product: Gentoo Linux Reporter: gustavo panizzo <gfa> <gfa>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gustavo panizzo <gfa> 2007-06-19 00:16:15 UTC
if /bin/sh is not bash ldd don't work anymore, changing the shebang  work as espected

example
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Mar 24 12:17 /bin/sh -> dash
soilwork ~ # ldd /bin/ls ; echo $?
2
soilwork ~ # sed -e "s/sh/bash/" /usr/bin/ldd > /usr/bin/ldd.fixed
soilwork ~ # bash /usr/bin/ldd.fixed /bin/ls
        not a dynamic executable



Reproducible: Always

Steps to Reproduce:
1.install dash
2.change /bin/sh link to /bin/dash
3.ldd dont' work anymore




tested on several gentoo instalations, hardened, 2007/desktop, old mipsel, etc
Comment 1 SpanKY gentoo-dev 2007-06-19 01:52:00 UTC
please search next time

*** This bug has been marked as a duplicate of bug 180546 ***