From e51b34da4650ad3a2b502054dff66999b74641b4 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 11 Dec 2023 11:50:06 -0500 Subject: [PATCH] snapcraft/wrappers/editor: fix EDIT_PATH_HOST mangling Signed-off-by: Simon Deziel --- snapcraft/wrappers/editor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapcraft/wrappers/editor b/snapcraft/wrappers/editor index aa30a4b44..825b41e7b 100755 --- a/snapcraft/wrappers/editor +++ b/snapcraft/wrappers/editor @@ -39,7 +39,7 @@ fi if [ -n "${EDIT_CMD}" ] && [ "${USERNS}" = 1 ]; then exec 9< /tmp/ # Replace "/tmp/" prefix by exec'ed FD 9. - EDIT_PATH_HOST="/proc/self/fd/9/$(echo "${EDIT_PATH}" | cut -d/ -f2)" + EDIT_PATH_HOST="/proc/self/fd/9/$(echo "${EDIT_PATH}" | cut -d/ -f3)" find_and_spawn "${EDIT_CMD}" "${EDIT_PATH_HOST}" fi