logerrit | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 9276b117355c098bdfbe3cfa207aca869bf4bd01
Author: Guilhem Moulin <[email protected]>
AuthorDate: Wed Jan 15 05:22:20 2020 +0100
Commit: Guilhem Moulin <[email protected]>
CommitDate: Wed Jan 15 23:51:17 2020 +0100
logerrit: atomically create ~/.ssh with restrictive mode
AFAICT `mkdir [-m mode]` is already defined in POSIX.1-1990.
Change-Id: I159578eac16398f16d55578fbd818906b77cf373
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86852
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <[email protected]>
Reviewed-by: Michael Stahl <[email protected]>
diff --git a/logerrit b/logerrit
index 33f45dc44c73..04ce54414904 100755
--- a/logerrit
+++ b/logerrit
@@ -76,8 +76,7 @@ case "$1" in
created_ssh=
if ! test -d $ssh_home; then
echo "It appears that you have no ssh setup, running ssh-keygen to
create that:"
- mkdir $ssh_home
- chmod 0700 $ssh_home
+ mkdir -m0700 "$ssh_home"
created_ssh=TRUE
echo
echo "Hit enter to generate an ssh key - you will need to enter a
pass-phrase"
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits