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: 1173428 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-105739-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="jFE7yF26"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46nkCT4b69z9sN1 for ; Wed, 9 Oct 2019 04:01:41 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=Mk0b5e9MhtFa6DuAUudm24WE+QK5s dtdvoNA6ZqFEmo9MFD3IfM6tyMB7TZnxf38qX46Z9rR+y6vMYQ37+80FBhTNMilN qwFVjJsO9aNWv91D42gAPO91oU/pGdBj9dGFlJp5pSwqMqfk83eCQL+p0fuKg/Me T/cTjGb06XQcTQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=eoWbSe6ryGAmw+pp2qEUAxWD/Io=; b=jFE 7yF26ZNGmJKwwudiDLG8KJF2AXPwYZYb5A/tUj0y5ElLtgR+jsmlYZzPr4FGaTeE /PGgLsZb5lWwztTmZAacsgE/9RJOSw3ZkI/1wXni43lwYA96dy8Hr/KuujhhpO2f iXvDvGOlVVWcH0tpfQ8InoWAxRzyS28sZEidXFMM= 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 } ;;