From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24812 invoked by alias); 17 Apr 2015 15:47:06 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34916 Received: (qmail 2894 invoked from network); 17 Apr 2015 15:47:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 Message-ID: <1429285287.7285.11.camel@niobium.home.fifi.org> Subject: Re: [PATCH 1/2] report bad ELF interpreter if it causes exec to fail From: Philippe Troin To: Kamil Dudka Cc: zsh-workers@zsh.org Date: Fri, 17 Apr 2015 08:41:27 -0700 In-Reply-To: <1429277155-24607-1-git-send-email-kdudka@redhat.com> References: <1429277155-24607-1-git-send-email-kdudka@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit On Fri, 2015-04-17 at 15:25 +0200, Kamil Dudka wrote: > This is already implemented in some > distributions of bash and tcsh . > > Steps to reproduce: > > echo 'int main () { return 0; }' > u.c > gcc -o u u.c -Wl,-dynamic-linker,/foo/bar/baz > zsh -c ./u > > Bug: https://bugzilla.redhat.com/711067 This is such a corner case. It shouldn't be the shell's job to reinterpret the errno codes returned by the underlying OS. This patch does not belong in the shell code IMHO, but at a lower-level. I've noticed that this patch has not been accepted upstream in bash yet. Phil.