using LD_PRELOAD and changing LD_LIBRARY_PATH
I am not sure where to place this thread. I am new to this forum. I have a question about
an IBM example in one of their technical reports. In that example they are demonstrating how to override a function in a gnu library. The code is export LD_PRELOAD=libfuncs.so export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./setresgid-tester It's me the shim. Hi there! I know about preoload files, but I thought that you had to put not only the file name, but its path into the PRE_LOAD command. Also. what is gong on on the next line? It seems to be nonsense. I know it is not. export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH What is with the .: in the command. It is needed because the output of ./setresgid-tester is different if it is left out. Is it a good idea to change the LD_LIBRARY_PATH by adding an additional path? Any help appreciated. Thanks in advance. Respectfully, jyunker |
The . is the current directory, by adding it in they have enabled the ability to PRELOAD the library from the current directory which is why they have not given it's path.
|
All times are GMT -5. The time now is 03:05 PM. |