| Summary: | ldd broken if /bin/sh is not bash | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | gustavo panizzo <gfa> <gfa> |
| Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
please search next time *** This bug has been marked as a duplicate of bug 180546 *** |
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