From 994cdcabb148d597eb3a6536ecc2606d37904ec5 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 21 Nov 2024 15:16:35 -0500 Subject: [PATCH] cmdlib: also chown back `compose.json` in privileged path Match what we do for the repo and chown back `compose.json` to the build user. This should fix `cosa build --force-image`. --- src/cmdlib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmdlib.sh b/src/cmdlib.sh index 32a26bc4f6..da20efa7f8 100755 --- a/src/cmdlib.sh +++ b/src/cmdlib.sh @@ -566,6 +566,7 @@ runcompose_tree() { # with a consistent value, regardless of the environment (umask 0022 && sudo -E "$@") sudo chown -R -h "${USER}":"${USER}" "${tmprepo}" + sudo chown "${USER}":"${USER}" "${composejson}" else runvm_with_cache -- "$@" --repo "${repo}" --write-composejson-to "${composejson}" fi