Skip to content

Commit

Permalink
Fix ownership/perms for created union/linkfiles source dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails developers authored and daniel-baumann committed Apr 5, 2012
1 parent c318829 commit 0804cf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/live-helpers
Expand Up @@ -1406,6 +1406,8 @@ activate_custom_mounts ()
# unions and don't need to be bootstrapped
# linkfiles dirs can't be bootstrapped in a sensible way
mkdir "${source}"
chown --reference "${dest}" "${source}"
chmod --reference "${dest}" "${source}"
else
# ensure that $dest is not copied *into* $source
mkdir -p "$(dirname ${source})"
Expand Down

0 comments on commit 0804cf7

Please sign in to comment.