Why empty in LD_LIBRARY_PATH be interpreted as `use the current directory`?

Florian Weimer fweimer@redhat.com
Wed May 8 10:00:00 GMT 2019


* ronyweng:

> I am concerned for the security. Shouldn't glibc just ignore empty?

It's always been this way.  For PATH, current POSIX requires it (“A
zero-length prefix is a legacy feature that indicates the current
working directory.”).  These scripts need to be fixed.

Maybe we could provide a different variable that behaves differently,
but the transition period would be quite long.

Thanks,
Florian



More information about the Libc-help mailing list