summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-03-26 19:22:47 +0200
committerDaniel Baumann <daniel@debian.org>2012-04-05 07:54:42 +0200
commitd4d4f98335c3bd91192501e123694a727da85956 (patch)
treedacf8db86ed4a41787ebb3c02daa2c542315e23d /scripts
parent268ad5d5b86fa0d7d7202a96113ef5167d855ec7 (diff)
downloadlive-boot-d4d4f98335c3bd91192501e123694a727da85956.tar.gz
live-boot-d4d4f98335c3bd91192501e123694a727da85956.zip
Copy perms/ownership from source when creating linkfiles dest dirs.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-helpers5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index ffc2025..78de240 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -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