X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=util%2Fshlib_wrap.sh;h=646b0fe169306d903a2dc4aa39672122553136f7;hp=d744ff303d6affd6b8c50b64ded90e8895bbaf99;hb=5fc3ee4b77a6495a3544ce3192e71af0a9d74e08;hpb=4f33534c8a684d257ef3e105b1badf07e3a56448 diff --git a/util/shlib_wrap.sh b/util/shlib_wrap.sh index d744ff303d..646b0fe169 100755 --- a/util/shlib_wrap.sh +++ b/util/shlib_wrap.sh @@ -88,4 +88,10 @@ if [ -f "$LIBCRYPTOSO" -a -z "$preload_var" ]; then export LD_PRELOAD _RLD_LIST DYLD_INSERT_LIBRARIES fi -exec "$@" +cmd="$1"; [ -x "$cmd" ] || cmd="$cmd${EXE_EXT}" +shift +if [ $# -eq 0 ]; then + exec "$cmd" # old sh, such as Tru64 4.x, fails to expand empty "$@" +else + exec "$cmd" "$@" +fi