From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753781Ab0CZVQR (ORCPT ); Fri, 26 Mar 2010 17:16:17 -0400 Received: from mail-iw0-f196.google.com ([209.85.223.196]:37020 "EHLO mail-iw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695Ab0CZVQQ convert rfc822-to-8bit (ORCPT ); Fri, 26 Mar 2010 17:16:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=YCPKAw2KhDCiwAvvG7TVG2vceGSnmyujwPKoDeE1zZRlq2rPvw+kxBWaROWmFe0U/C CwY+SrJoRJqe08h3no+HZQ08saWPegDmsP7MdY98jz17I1rUyWUOZwLYIouGU9s+9Opq oT64gUNdBK+ZSNqW3EB/Aidm6YhxszMuWTHMs= MIME-Version: 1.0 In-Reply-To: References: From: Ulrich Drepper Date: Fri, 26 Mar 2010 14:15:55 -0700 Message-ID: Subject: Re: execve() returns ENOENT when ld-linux.so isn't found To: Luca Barbieri Cc: Olaf van der Spek , 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 Fri, Mar 26, 2010 at 14:06, Luca Barbieri wrote: >>> None of these perfectly fit, but EINVAL seems the closest. >> >> No.  ENOENT is the right value. > > Not according to POSIX 2008, which does not explicitly specify this case. That argumentation is bogus. You wrote yourself, this situation isn't (and cannot) be described in POSIX. For such cases the any error value is consistent with POSIX. Again: any value is as good as any other. The existing value works and changing it breaks existing code.