From de5f882683229a57d1e8916a8a5d6246b673a0ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com> Date: Thu, 18 Aug 2011 13:17:15 +0200 Subject: [PATCH] ensure-dirs: Fix a bug with queue/archive permissions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While it sets the permission on all files in queue/archive accordingly it doesn't do so for the created archive directories. This patch fixes this problem. Signed-off-by: RenΓ© Nussbaumer <rn@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- daemons/ensure-dirs.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemons/ensure-dirs.in b/daemons/ensure-dirs.in index ff6d744e0..02ebb878d 100644 --- a/daemons/ensure-dirs.in +++ b/daemons/ensure-dirs.in @@ -101,6 +101,11 @@ _ensure_datadir() { local queue_owner="$(_fileset_owner masterd)" local ssconf_owner="$(_fileset_owner noded)" + find ${DATADIR}/queue/archive -type d | \ + while read path; do + _ensure_dir ${path} 0700 "$queue_owner" + done + _gather_files ${DATADIR}/queue 0600 @GNTMASTERUSER@ @GNTMASTERDGROUP@ | \ while read path; do _ensure_file "$path" 0600 "$queue_owner" -- GitLab