[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: env -C lacks fchdir support
From: |
Pádraig Brady |
Subject: |
Re: env -C lacks fchdir support |
Date: |
Sun, 9 Sep 2018 17:01:39 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 07/09/18 08:24, Eric Blake wrote:
> There are cases where you cannot directly change directory to a given
> location via a path name, but where you can hold an fd to that directory
> and where fchdir() will work. Since we've already added 'env -C' as an
> extension for chdir, should we add a counterpart extension that permits
> fchdir to an inherited fd, even for systems that lack /proc/NNN/fd/MMM?
Maybe. Do you have concrete examples for where this might be useful.
cheers