[PATCH] Use correct exit status in ldd (bug 24150)
Andreas Schwab
schwab@suse.de
Mon Feb 3 11:25:00 GMT 2020
The message "not a dynamic executable" is not an error, so don't exit with
a nonzero status.
---
elf/ldd.bash.in | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 467cbf44e9..a879ddd640 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -166,10 +166,7 @@ warning: you do not have execution permission for" "\`$file'" >&2
case $ret in
1)
# This can be a non-ELF binary or no binary at all.
- nonelf "$file" || {
- echo $" not a dynamic executable" >&2
- result=1
- }
+ nonelf "$file" || echo $" not a dynamic executable"
;;
0|2)
try_trace "$RTLD" "$file" || result=1
--
2.25.0
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list