diff mbox series

[committed] maintainer-scripts: Fix up gcc_release without -l, where mkdir was using umask 077 after migration

Message ID 20200312173253.GW2156@tucnak
State New
Headers show
Series [committed] maintainer-scripts: Fix up gcc_release without -l, where mkdir was using umask 077 after migration | expand

Commit Message

Li, Pan2 via Gcc-patches March 12, 2020, 5:32 p.m. UTC
Hi!

After the sourceware migration, seems the gcc_release -u gccadmin ...
created directories had 2700 permissions instead of 2755.

Fxed thusly, committed to trunk.

2020-03-12  Jakub Jelinek  <jakub@redhat.com>

	* gcc_release (upload_files): Without -l, pass -m 755 to the mkdir
	command invoked through ssh.


	Jakub
diff mbox series

Patch

--- maintainer-scripts/gcc_release.jj	2020-02-27 09:31:57.481096944 +0100
+++ maintainer-scripts/gcc_release	2020-03-12 18:12:54.061688369 +0100
@@ -398,7 +398,7 @@  upload_files() {
   # Make sure the directory exists on the server.
   if [ $LOCAL -eq 0 ]; then
     ${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} \
-      mkdir -p "${FTP_PATH}/diffs"
+      mkdir -m 755 -p "${FTP_PATH}/diffs"
     UPLOAD_PATH="${GCC_USERNAME}@${GCC_HOSTNAME}:${FTP_PATH}"
   else
     mkdir -p "${FTP_PATH}/diffs" \