From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753502Ab0CZSkU (ORCPT ); Fri, 26 Mar 2010 14:40:20 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:46576 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056Ab0CZSkS convert rfc822-to-8bit (ORCPT ); Fri, 26 Mar 2010 14:40:18 -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=UCRQ+c/ZJq7iGK3F5dtozq1Y4mlst6TolI95KHn7Pqd0rHx+mCwJgilm4C45ZN+PuS /pm56Kkzxf4QvSHeiEXkC9TZz3d5S23sEUA/b9B2bjH/fiPmE4ro5hPi68E6GvlpV1G9 DL3xsq8bRsNtiI99k+7igMN7PLHXq2ZBVAASs= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 26 Mar 2010 19:40:16 +0100 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 Fri, Mar 26, 2010 at 12:56 PM, Ulrich Drepper wrote: > 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. What about other apps that call execve? Sounds like a lot of code duplication is needed. Olaf