This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



I know it was   deliberately, but it seems to be error prone.

Some utilities(gvm in my case) change LD_LIBRARY_PATH like this.

export LD_LIBRARY_PATH; LD_LIBRARY_PATH="${GVM_OVERLAY_PREFIX}/lib:${LD_LIBRARY_PATH}"

 

There is no default LD_LIBRARY_PATH in most of systems,

It turn out that the empty (current dirctory) is appended to LD_LIBRARY_PATH.

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

 

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]