gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 105/151: tests: fix permissions of ssh keys in WSL


From: gnunet
Subject: [gnurl] 105/151: tests: fix permissions of ssh keys in WSL
Date: Fri, 20 Dec 2019 14:26:54 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 213c5aca7bfc74a6ae02b065c5f38a1e9ff54d62
Author: Marc Hoersken <address@hidden>
AuthorDate: Sat May 18 23:28:09 2019 +0200

    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(+)

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";
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]