From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20968 invoked by alias); 17 Apr 2015 20:05:55 -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: 34922 Received: (qmail 26319 invoked from network); 17 Apr 2015 20:05:52 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1429300775; bh=NMmsGDoIr72NdQQ5JCXNnF8/ecuPeqqru7JQOZP528Y=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=Szhxz4PAeL/AV/3sWRED7Atd74/O3W/QhvgCH4dcSpFpgQrXdbfXAixH7at6wkA8fpJB/ukFKVBPvwZG5gF0JOP79sgggh1QCfcgxMEiOS7LqauyjlEMuGzgzMtFwJVktjnDuGLfHVqt1FX614eDvHLZ5aSXTXsjbWwGNbKgI4oJobnUWMwI5kYYDL7IG331nUizjAgBOrEtq+29pf5C5g9MXeUjJWNOXzw/Fp90sCtgYtgwj2jwTK0MfjqPgRwLLeYSZL33g5u0q/JCgNpP1YX93db5qUdj6wEzTNY6biXVIG2tfW5mlf8x3HVXnP3388k7Oc6h1XNoNESh3V0j9Q== X-Yahoo-Newman-Id: 653712.21419.bm@smtp145.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: lE.g9lsVM1lmxPZD_G2sTx.9EI2dQFL63GSkyfImLCVLuKZ aS28Hu10jXj1qQn409tsAxOYBtjINUH5JLDsZD0DBtle.pMLw2GT87Rf794E GAoKnHY0kJNseluE92rlU7ngGGcUKNVtkrSrXWMgvX8cL7v0XnMbnrIGa.hs 4Yd3qTHnxMxQ0RInfdQlqJ9.qNwco.bENf11E2ab3uFDsaSf3iZPZXiwT8T6 f0.8_YA..9uQoRlTw2CKgnzOQm_jAV_zEtuDokDDmVqFDi1MpYC5UioI2OAo gkdqThjTxo4abePxmJ_XlrC.JPkYxI1awhlPNF3sd7fafzQ8CuCHnCslFYnH rB.Fl3h2tY13UEMHCVwvKbjj6xwWWV0UJZDQzlBH6p6N5srg6QnNtjtf_wRy INYgUHW1sgQcDa10t2xwEwzLbSu.uCzFx3VJMQnCM2cDkvEpTDgbK5GpS.MG X0cZ79jQYz2TAkpbzJNDE2imxYsXCUBu.oJvi.CYY7SsX7xLe2t0qJ.zdCNr n5sXvg2VSaVrIbjzEMd0h3mpZww8Bw4j8 X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <2127409.yB077Jb7Wn@kdudka.brq.redhat.com> From: Oliver Kiddle References: <1429277155-24607-1-git-send-email-kdudka@redhat.com> <30591.1429284100@thecus.kiddle.eu> <2127409.yB077Jb7Wn@kdudka.brq.redhat.com> To: zsh-workers@zsh.org Subject: Re: [PATCH 1/2] report bad ELF interpreter if it causes exec to fail MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4156.1429300754.1@quattro> Date: Fri, 17 Apr 2015 21:59:34 +0200 Message-ID: <4158.1429300774@quattro> Kamil Dudka wrote: > Why would the patch require linking with libelf? My mistake sorry, I see the patch is using read() direct to the structures from elf.h rather than calling routines. I guess it gets away without handling byte order because that would result in an errno other than ENOENT from exec. Still I'm in agreement with Philippe and Bart on this one. The shell is not the right place for this. Oliver