diff mbox series

R: [PATCH] support/download/dl-wrapper: make the whole dl_dir writeable for the group

Message ID AS8PR08MB68706CB4A015045EA70A454981149@AS8PR08MB6870.eurprd08.prod.outlook.com
State Not Applicable
Headers show
Series R: [PATCH] support/download/dl-wrapper: make the whole dl_dir writeable for the group | expand

Commit Message

Luca Pesce Dec. 1, 2022, 7:17 a.m. UTC
Sorry, forgot to put Yann in cc, as utils/get-developers suggests.

Luca
diff mbox series

Patch

diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
index 09a6ac1..b7a4319 100755
--- a/support/download/dl-wrapper
+++ b/support/download/dl-wrapper
@@ -190,6 +190,10 @@  main() {
     new_mode=$(printf "%04o" $((0${new_mode} & ~0$(umask))))
     chmod ${new_mode} "${tmp_output}"

+    # Make the whole dl_dir writeable for the group, so other users within
+    # the group can download new versions and update any vcs cache in it.
+    chmod -f -R g+w "${dl_dir}"
+
     # We must *not* unlink tmp_output, otherwise there is a small window
     # during which another download process may create the same tmp_output
     # name (very, very unlikely; but not impossible.)