Skip to content

Commit

Permalink
Copy perms/ownership from source when creating linkfiles dest 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 268ad5d commit d4d4f98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/live-helpers
Expand Up @@ -1181,9 +1181,8 @@ link_files ()
if [ ! -d "${dest}" ]
then
mkdir -p "${dest}"
prev="$(dirname "${dest}")"
chown_ref "${prev}" "${dest}"
chmod_ref "${prev}" "${dest}"
chown_ref "${src}" "${dest}"
chmod_ref "${src}" "${dest}"
fi
link_files "${src}" "${dest}" "${src_mask}"
else
Expand Down

0 comments on commit d4d4f98

Please sign in to comment.