From: Frank Kotler <fbkotler@comcast.net>
To: linux-assembly@vger.kernel.org
Subject: Re: chdir on linux does not work
Date: Wed, 24 May 2006 02:49:24 -0400 [thread overview]
Message-ID: <447401F4.4020603@comcast.net> (raw)
In-Reply-To: <20060524042614.GA18142@kurp.hut.fi>
Timo Lindfors wrote:
...
> Remember that chdir affects only the process that calls chdir.
I thought Noprianto's problem was the lack of a terminating zero after
"/bin"... didn't help, but I still think it's a bug waiting to byte.
Adding a call to sys_getcwd (__NR_ 183) (why is this man 3, not man 2
???) proves that, sure enough, it *does* work... but we change back on
exit... as you say...
> You
> can't e.g. write a replacement for shell's builtin "cd" command that
> way.
Okay, how *would* we do that? I know! I'll check "asmutils"! Hmmm... no
chdir in asmutils... This is apparently harder than it looks!
Good Question!
Best,
Frank
next prev parent reply other threads:[~2006-05-24 6:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 2:49 chdir on linux does not work Noprianto
2006-05-24 4:26 ` Timo Lindfors
2006-05-24 6:49 ` Frank Kotler [this message]
2006-05-24 7:15 ` Brian Raiter
2006-05-24 7:21 ` Frank Kotler
2006-05-24 12:17 ` Timo Lindfors
2006-05-25 3:55 ` Adrian Ho
2006-05-25 4:18 ` Frank Kotler
2006-05-24 6:18 ` Brian Raiter
2006-05-24 14:06 ` jeff
2006-05-25 3:20 ` Noprianto
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=447401F4.4020603@comcast.net \
--to=fbkotler@comcast.net \
--cc=linux-assembly@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).