From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753130Ab0C2Okk (ORCPT ); Mon, 29 Mar 2010 10:40:40 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:40464 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752696Ab0C2Oki convert rfc822-to-8bit (ORCPT ); Mon, 29 Mar 2010 10:40:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=eiQ2pt4OrTJsmhy6F7MWy3ju8VB2P8/jSeN5H9i999ozxZcVYzMDfJZ4pVFaR0MM/S tH45BwFdfaZQQfQdH8XEsWpR8uCvxb/8hcpALa9fgfUbsPv5gN1kS0rTXVNNGW6vHIq4 3P5zi2tcu1r/E7uiL8iIQ041Jktkb0qEZPVpM= MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 29 Mar 2010 16:40:36 +0200 Message-ID: Subject: Re: execve() returns ENOENT when ld-linux.so isn't found From: Olaf van der Spek To: Ulrich Drepper Cc: Luca Barbieri , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 27, 2010 at 1:05 PM, Ulrich Drepper wrote: > On Sat, Mar 27, 2010 at 04:50, Olaf van der Spek wrote: >> It didn't 'work' for me. > > You still don't get it?  No shell provides you with a correct error > message.  There is quite some work involved (reading program header, > finding the interpreter entry, checking the file) to give a meaningful > error message.  Changing the error code alone achieves nothing. File not found is a very common error message with a pretty will understood meaning. Overloading it in this way causes confusion. Overloading another error code would avoid this confusion, especially since it's far less used. Olaf