RFE: Implementing posix_spawnattr_setfchdir() in glibc
Rich Felker
dalias@aerifal.cx
Mon Nov 5 17:15:00 GMT 2012
On Mon, Nov 05, 2012 at 04:11:57PM +0100, Michal Hlavinka wrote:
> I asked why there is no chdir() version, the rationale is that this
> adds an extra set of failure modes, which can be prevented by forcing
> every one to do a openat(AT_FDCWD, ".", O_SEARCH), in which case it is
> guaranteed that at least the directory exists (Linux will have to use
> O_PATH instead of O_SEARCH).
Incidentally, why is glibc failing to define O_SEARCH and O_EXEC?
Using the value of O_PATH for both seems to give the POSIX semantics.
Rich
More information about the Libc-alpha
mailing list