From 213c5aca7bfc74a6ae02b065c5f38a1e9ff54d62 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sat, 18 May 2019 23:28:09 +0200 Subject: 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 --- tests/sshserver.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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"; } -- cgit v1.2.1