summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2019-05-18 23:28:09 +0200
committerJay Satiro <raysatiro@yahoo.com>2019-12-09 19:32:35 -0500
commit213c5aca7bfc74a6ae02b065c5f38a1e9ff54d62 (patch)
tree42d4f13eb16912cd7ae31a9f79b60e7173988563 /tests
parent0783f2e585b1ee726698b172ca899d21a7e0af30 (diff)
downloadcurl-213c5aca7bfc74a6ae02b065c5f38a1e9ff54d62.tar.gz
tests: fix permissions of ssh keys in WSL
Keys created on Windows Subsystem for Linux (WSL) require it for some reason. (This is one of several commits to support use of WSL for the tests.) Ref: https://github.com/curl/curl/pull/3899
Diffstat (limited to 'tests')
-rw-r--r--tests/sshserver.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
index bcb2f1b3a..197e8b872 100644
--- a/tests/sshserver.pl
+++ b/tests/sshserver.pl
@@ -371,6 +371,9 @@ if((! -e $hstprvkeyf) || (! -s $hstprvkeyf) ||
logmsg 'Could not generate client key';
exit 1;
}
+ # Make sure that permissions are restricted so openssh doesn't complain
+ system "chmod 600 $hstprvkeyf";
+ system "chmod 600 $cliprvkeyf";
}