From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155Ab0CZL4x (ORCPT ); Fri, 26 Mar 2010 07:56:53 -0400 Received: from mail-iw0-f196.google.com ([209.85.223.196]:46711 "EHLO mail-iw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165Ab0CZL4v (ORCPT ); Fri, 26 Mar 2010 07:56:51 -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; b=DvIJv27J/tsiMQIyB9peRY1V3IdEBx0payZjg8xr/JkoZKjLU7oQwIuzsXaxPCBB+y BPiOPg3H7ac6lwevJGSZ7XyWio9Upm+6w8hQDLx9Jfl0W11MnKNBGiA/lNjzqRxxq+R3 j0i/q0FkyRiQsdo+00fpa9lzD9ZH53e7I3AAo= MIME-Version: 1.0 In-Reply-To: References: From: Ulrich Drepper Date: Fri, 26 Mar 2010 04:56:30 -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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2010 at 14:00, Luca Barbieri wrote: > None of these perfectly fit, but EINVAL seems the closest. No. ENOENT is the right value. Once again, read my first message. The shell cannot just report the error anyway since there can be many different reasons for the problem. If the dynamic linker is missing it has to be discovered and then reported. In that message the correct error code is ENOENT. Don't try to change things which are as good as any other solution. The error message alone is in no case sufficient. Fix your shells.