Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcpize: do not override existing LD_PRELOAD value (#315)
If any. Before, previously set LD_PRELOAD were overridden. According to 'man ld.so', there can be more than one library to load before other objects as this env var accepts a list separated by spaces or colons: A list of additional, user-specified, ELF shared objects to be loaded before all others. This feature can be used to selectively override functions in other shared objects. The items of the list can be separated by spaces or colons, and there is no support for escaping either separator. So let's do that: if a previous LD_PRELOAD is detected, it will no longer be dropped, but used with the MPTCP Wrap library added at the end, e.g. LD_PRELOAD=dummy.so:libmptcpwrap.so.0.0.1 Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
- Loading branch information