[prev in list] [next in list] [prev in thread] [next in thread]
List: openssh-commits
Subject: [openssh-commits] [openssh] 02/04: use $AUTH_KEY_DIR, now that we have it
From: git+noreply () mindrot ! org
Date: 2021-02-25 14:08:26
Message-ID: 9e7fe06b132066d3 () fuyu ! mindrot ! org
[Download RAW message or body]
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 3594b3b015f6014591da88ba71bf6ff010be7411
Author: Philip Hands <phil@hands.com>
Date: Tue Oct 13 14:12:58 2020 +0200
use $AUTH_KEY_DIR, now that we have it
since that was a change made since jjelen's commit was written
also, quote the variables
SSH-Copy-ID-Upstream: 588cd8e5cbf95f3443d92b9ab27c5d73ceaf6616
---
contrib/ssh-copy-id | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id
index 3105e78b..b8a67419 100644
--- a/contrib/ssh-copy-id
+++ b/contrib/ssh-copy-id
@@ -252,11 +252,11 @@ installkeys_sh() {
cd;
umask 077;
mkdir -p "${AUTH_KEY_DIR}" &&
- { [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> ${AUTH_KEY_FILE}; } &&
- cat >> ${AUTH_KEY_FILE} ||
+ { [ -z \`tail -1c ${AUTH_KEY_FILE} 2>/dev/null\` ] || echo >> "${AUTH_KEY_FILE}"; } &&
+ cat >> "${AUTH_KEY_FILE}" ||
exit 1;
if type restorecon >/dev/null 2>&1; then
- restorecon -F $(dirname "${AUTH_KEY_FILE}") ${AUTH_KEY_FILE};
+ restorecon -F "${AUTH_KEY_DIR}" "${AUTH_KEY_FILE}";
fi
EOF
)
--
To stop receiving notification emails like this one, please contact
djm@mindrot.org.
_______________________________________________
openssh-commits mailing list
openssh-commits@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic