Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269024AbUI3Ick (ORCPT ); Thu, 30 Sep 2004 04:32:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268955AbUI3Ick (ORCPT ); Thu, 30 Sep 2004 04:32:40 -0400 Received: from alephnull.demon.nl ([212.238.201.82]:50873 "EHLO xi.wantstofly.org") by vger.kernel.org with ESMTP id S269063AbUI3Ici (ORCPT ); Thu, 30 Sep 2004 04:32:38 -0400 Date: Thu, 30 Sep 2004 10:32:36 +0200 From: Lennert Buytenhek To: Tonnerre Cc: Trond Myklebust , dsaxena@plexity.net, linux-kernel@vger.kernel.org, herbertb@cs.vu.nl Subject: Re: strange NFS problems (ARM client, x86 server) Message-ID: <20040930083236.GA32262@xi.wantstofly.org> References: <20040929082307.GA19666@xi.wantstofly.org> <20040929203347.GD21770@thundrix.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040929203347.GD21770@thundrix.ch> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 42 On Wed, Sep 29, 2004 at 10:33:47PM +0200, Tonnerre wrote: > Salut, Hi, > > chdir("") = -1 ENOENT (No such file or directory) > > Interestingly, rpm requested an empty chdir. This narrows down the > problem. I don't think it does, as the second invocation of RPM (after cd 'pwd') also does this, but works fine. > The following miniapp should be able to reproduce the problem: > > cat << EOT > blah.c > #include > #include > #include > > int main(void) { > if (chdir("")) { > perror("chdir"); > exit(1); > } > exit(0); > } > EOT 'current directory' is per-process state. You'll end up changing the current directory in the child process, but not the parent. --L - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/