execvpe limits PATH environment variable to PATH_MAX
Nils Andre
nils@nilsand.re
Tue Mar 31 13:15:46 GMT 2020
On Tue, Mar 31, 2020 at 02:39:21PM +0200, Andreas Schwab wrote:
> On Mär 30 2020, Nils Andre wrote:
>
> > Commit 1eb8930608705702d5746e5491bab4e4429fcb83, limits the length of
> > the `PATH` environment variable to `PATH_MAX`.
>
> Does it? I'm only seeing a limit on a single PATH element.
>
Yes that is correct. I misread the code and then the commit message.
What seems like it is limiting the length of PATH (for me) is just
limiting the allocation of `buffer` and the possibility of a path in
PATH being longer than PATH_MAX.
Sorry.
Nils
More information about the Libc-alpha
mailing list