summaryrefslogtreecommitdiff
path: root/mark-as-expendable-dir.in
diff options
context:
space:
mode:
Diffstat (limited to 'mark-as-expendable-dir.in')
-rw-r--r--mark-as-expendable-dir.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/mark-as-expendable-dir.in b/mark-as-expendable-dir.in
index bb31b3e..c074d14 100644
--- a/mark-as-expendable-dir.in
+++ b/mark-as-expendable-dir.in
@@ -71,14 +71,17 @@ do
printf '# For information about cache directory tags, see:\n'
printf '# http://www.brynosaurus.com/cachedir/\n'
} > "${dir}/CACHEDIR.TAG"
+ chown --reference "${dir}" "${dir}/CACHEDIR.TAG"
fi
if [ ! -f "${dir}/.rsync-filter" ]; then
{
printf '+ .rsync-filter\n'
printf -- '- *\n'
} > "${dir}/.rsync-filter"
+ chown --reference "${dir}" "${dir}/.rsync-filter"
fi
if [ ! -f "${dir}/.nobackup" ]; then
touch "${dir}/.nobackup"
+ chown --reference "${dir}" "${dir}/.nobackup"
fi
done