From: Lennert Buytenhek <buytenh@wantstofly.org>
To: Tonnerre <tonnerre@thundrix.ch>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
dsaxena@plexity.net, linux-kernel@vger.kernel.org,
herbertb@cs.vu.nl
Subject: Re: strange NFS problems (ARM client, x86 server)
Date: Thu, 30 Sep 2004 10:32:36 +0200 [thread overview]
Message-ID: <20040930083236.GA32262@xi.wantstofly.org> (raw)
In-Reply-To: <20040929203347.GD21770@thundrix.ch>
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 <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
>
> 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
prev parent reply other threads:[~2004-09-30 8:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-29 8:23 Lennert Buytenhek
2004-09-29 8:26 ` Trond Myklebust
2004-09-29 20:33 ` Tonnerre
2004-09-30 8:32 ` Lennert Buytenhek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040930083236.GA32262@xi.wantstofly.org \
--to=buytenh@wantstofly.org \
--cc=dsaxena@plexity.net \
--cc=herbertb@cs.vu.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=tonnerre@thundrix.ch \
--cc=trond.myklebust@fys.uio.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®