X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Fshlib_wrap.sh;h=646b0fe169306d903a2dc4aa39672122553136f7;hp=8775cb5411e1f2397eb0e138203b2c9636411f50;hb=4ada8be2a6c538ee66a9a35a182052f359fc94b3;hpb=1dce6c3f9eef0da2866b82d816dc945883427060;ds=sidebyside diff --git a/util/shlib_wrap.sh b/util/shlib_wrap.sh index 8775cb5411..646b0fe169 100755 --- a/util/shlib_wrap.sh +++ b/util/shlib_wrap.sh @@ -88,7 +88,7 @@ if [ -f "$LIBCRYPTOSO" -a -z "$preload_var" ]; then export LD_PRELOAD _RLD_LIST DYLD_INSERT_LIBRARIES fi -cmd="$1${EXE_EXT}" +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 "$@"