From: Simon Kuenzer Date: Thu, 14 Sep 2023 19:07:15 +0000 (+0200) Subject: build: config-submenu: Correctly quote file path for readlink X-Git-Tag: RELEASE-0.15.0~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3da48dce420430612918996c55f890db64b6a165;p=unikraft%2Funikraft.git build: config-submenu: Correctly quote file path for readlink Whenever an output file is requested, `support/build/config-submenu` writes the name of the target file to the console. This commit passes this file name with quotes to `readlink` that converts it to a fully qualified path. Signed-off-by: Simon Kuenzer Reviewed-by: Cezar Craciunoiu Reviewed-by: Michalis Pappas Reviewed-by: Maria Sfiraiala Approved-by: Razvan Deaconescu GitHub-Closes: #1104 --- diff --git a/support/build/config-submenu.sh b/support/build/config-submenu.sh index 2c9d2b86b..8df3070c6 100755 --- a/support/build/config-submenu.sh +++ b/support/build/config-submenu.sh @@ -138,6 +138,6 @@ esac # close FD:7 and print filename if [ ! -z "$ARG_OUT" ]; then - printf '%s\n' "$( "${CMD_READLINK}" -f $ARG_OUT )" + printf '%s\n' "$( "${CMD_READLINK}" -f "${ARG_OUT}" )" exec 7>&- fi