From 59a95c8d8ccaae9b62b28477dd0fbc685dea6186 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 Mar 2019 21:13:10 +0100 Subject: mark-as-expendable-dir.in: chown tagfile to owner of directory --- mark-as-expendable-dir.in | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3