This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: FYI: new openat-like function: mkdirat
- From: Jim Meyering <jim at meyering dot net>
- To: bug-gnulib at gnu dot org, libc-alpha at sources dot redhat dot com, Ulrich Drepper <drepper at redhat dot com>
- Date: Thu, 01 Dec 2005 18:03:42 +0100
- Subject: Re: FYI: new openat-like function: mkdirat
- References: <20051130213658.F23021809B9@magilla.sf.frob.com> <87hd9tn4sf.fsf@rho.meyering.net> <20051201005505.GA1141@nevyn.them.org>
Daniel Jacobowitz <drow@false.org> wrote:
> You're talking about exec. If you're going to use execve anyway,
> there's no way you need your old initial working directory back, is
> there?
Right.
As James pointed out, the forked child can simply call
fchdir just before execvp, just as find already does.
So there's no need for any new exec* function, after all.