make preload script for testing a bit more robust
parent
1ea997b887
commit
af393afc09
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
dir=$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd)
|
||||
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
|
||||
export LD_PRELOAD+="$dir/hardened_malloc.so"
|
||||
exec $@
|
||||
exec "$@"
|
||||
|
|
Loading…
Reference in New Issue