mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:21:41 +03:00
sshserver.pl: use Perl chmod
Instead of relying on the external/shell command. For portability.
Follow-up to 213c5aca7b #3899
Closes #16859
This commit is contained in:
parent
7be2c421bf
commit
25eb2dbfbf
1 changed files with 2 additions and 2 deletions
|
|
@ -436,8 +436,8 @@ if((! -e pp($hstprvkeyf)) || (! -s pp($hstprvkeyf)) ||
|
|||
}
|
||||
display_file_top(pp($cliprvkeyf));
|
||||
# Make sure that permissions are restricted so openssh doesn't complain
|
||||
system "chmod 600 " . pp($hstprvkeyf);
|
||||
system "chmod 600 " . pp($cliprvkeyf);
|
||||
chmod 0600, pp($hstprvkeyf);
|
||||
chmod 0600, pp($cliprvkeyf);
|
||||
if(($^O eq 'cygwin' || $^O eq 'msys') && -e "/bin/setfacl") {
|
||||
# https://cygwin.com/cygwin-ug-net/setfacl.html
|
||||
system "/bin/setfacl --remove-all " . pp($hstprvkeyf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue