From patchwork Tue Oct 8 17:01:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 34878 Received: (qmail 16216 invoked by alias); 8 Oct 2019 17:01:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 16207 invoked by uid 89); 8 Oct 2019 17:01:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] ldd: Print "not a dynamic executable" on standard error [BZ #24150] Date: Tue, 08 Oct 2019 19:01:31 +0200 Message-ID: <87ftk39no4.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Tested with the testsuite on x86_64-linux-gnu, and manually. 2019-10-08 Florian Weimer [BZ #24150] * elf/ldd.bash.in: Print "not a dynamic executable" message to standard error. Reviewed-By: Richard W.M. Jones diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in index 843e352a6b..6162004818 100644 --- a/elf/ldd.bash.in +++ b/elf/ldd.bash.in @@ -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 } ;;