Bash snippets: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
Content added Content deleted
 (search paths)  | 
				 (add category)  | 
				||
| Line 9: | Line 9: | ||
This is more secure than plain appending, which can create empty components (e.g. a trailing ":") which are interpreted as "current directory" and lead to [https://threatpost.com/some-linux-distros-vulnerable-version-dll-hijacking-bug-082610/74387/ DLL search order hijacking].  | 
  This is more secure than plain appending, which can create empty components (e.g. a trailing ":") which are interpreted as "current directory" and lead to [https://threatpost.com/some-linux-distros-vulnerable-version-dll-hijacking-bug-082610/74387/ DLL search order hijacking].  | 
||
[[Category:Programming]]  | 
|||
Revision as of 22:25, 13 December 2019
Adding to the search path
# https://stackoverflow.com/a/9631350/1697183
export LD_LIBRARY_PATH="/foo/bar${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
This is more secure than plain appending, which can create empty components (e.g. a trailing ":") which are interpreted as "current directory" and lead to DLL search order hijacking.