commit:     605ae9eb6dae230d8bb967edbdd719c61a2b14b8
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 30 21:25:06 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Dec 30 21:29:46 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=605ae9eb

emerge-webrsync: chmod 755 temp dir (bug 704256)

Before the rsync call, chmod 755 the temporary directory so that the
root directory of the repository will have appropriate permissions.

Fixes: 92f4b283c86a ("emerge-webrsync: handle gentoo-YYYYMMDD directory name")
Bug: https://bugs.gentoo.org/704256
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 bin/emerge-webrsync | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index c259b7daa..db39b272e 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -281,6 +281,7 @@ sync_local() {
                        chown -R ${ownership} .
                        rsync_opts+=" --owner --group"
                fi
+               chmod 755 .
                rsync ${rsync_opts} . "${repo_location%%/}"
 
                __vecho "Cleaning up ..."

Reply via email to