mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
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
This commit is contained in:
parent
0783f2e585
commit
213c5aca7b
@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user