Commit 92712b47 authored by Tails developers's avatar Tails developers

Before running tails-upgrade-frontend, chdir to a world-readable place (Closes: #7641).

In particular, Archive::Tar::Wrapper, when called by tails-install-iuk, wants to
chdir back to the original cwd after it has chdir'd elsewhere to do its job.
parent 17b327d4
......@@ -68,6 +68,11 @@ sleep 30
check_free_memory "$MIN_MEMFREE" "$MIN_TOTAL_MEMFREE"
# Go to a place where everyone, especially Archive::Tar::Wrapper called by
# tails-install-iuk, can chdir back after it has chdir'd elsewhere to do
# its job.
cd /
xhost +SI:localuser:"$RUN_AS_USER"
if [ $# -gt 0 ] ; then
gksudo -u "$RUN_AS_USER" "/usr/bin/tails-upgrade-frontend $@"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment