zsh-workers
 help / color / mirror / code / Atom feed
From: Philippe Troin <phil@fifi.org>
To: Kamil Dudka <kdudka@redhat.com>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH 1/2] report bad ELF interpreter if it causes exec to fail
Date: Fri, 17 Apr 2015 08:41:27 -0700	[thread overview]
Message-ID: <1429285287.7285.11.camel@niobium.home.fifi.org> (raw)
In-Reply-To: <1429277155-24607-1-git-send-email-kdudka@redhat.com>

On Fri, 2015-04-17 at 15:25 +0200, Kamil Dudka wrote:
> This is already implemented <https://bugzilla.redhat.com/60870> in some
> distributions of bash and tcsh <https://bugzilla.redhat.com/711066>.
> 
> 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.


  parent reply	other threads:[~2015-04-17 15:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 13:25 Kamil Dudka
2015-04-17 13:25 ` [PATCH 2/2] clear the heredoc list in case par_event() fails Kamil Dudka
2015-04-17 19:17   ` Peter Stephenson
2015-04-20  8:48     ` Kamil Dudka
2018-11-29 16:24     ` Kamil Dudka
2018-11-29 17:34       ` Peter Stephenson
2018-11-29 18:39         ` Bart Schaefer
2018-11-30  9:55           ` Peter Stephenson
2018-11-30 12:53         ` Kamil Dudka
2015-04-17 13:49 ` [PATCH 1/2] report bad ELF interpreter if it causes exec to fail Daniel Shahaf
2015-04-17 14:32   ` Kamil Dudka
2015-04-17 15:21 ` Oliver Kiddle
2015-04-17 15:59   ` Kamil Dudka
2015-04-17 19:59     ` Oliver Kiddle
2015-04-17 15:41 ` Philippe Troin [this message]
2015-04-17 15:51   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429285287.7285.11.camel@niobium.home.fifi.org \
    --to=phil@fifi.org \
    --cc=kdudka@redhat.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).