ldd: Print "not a dynamic executable" on standard error [BZ #24150]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 15 Oct 2019 14:41:51 +0000 (16:41 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 15 Oct 2019 14:41:51 +0000 (16:41 +0200)
Tested with the testsuite on x86_64-linux-gnu, and manually.

Reviewed-By: Richard W.M. Jones <rjones@redhat.com>
elf/ldd.bash.in

index 843e352..6162004 100644 (file)
@@ -167,7 +167,7 @@ warning: you do not have execution permission for" "\`$file'" >&2
     1)
       # This can be a non-ELF binary or no binary at all.
       nonelf "$file" || {
-       echo $" not a dynamic executable"
+       echo $" not a dynamic executable" >&2
        result=1
       }
       ;;