try chgrp None

This commit is contained in:
Viktor Szakats 2025-02-28 21:28:23 +01:00
parent 6701084da2
commit 3d858c04e6
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -423,8 +423,8 @@ if((! -e pp($hstprvkeyf)) || (! -s pp($hstprvkeyf)) ||
system "chmod 600 " . pp($cliprvkeyf);
if($^O eq 'cygwin' || $^O eq 'msys') {
# https://cygwin.com/cygwin-ug-net/setfacl.html
system "setfacl --remove-all " . pp($hstprvkeyf);
system "setfacl --modify u:" . $username . ":r " . pp($hstprvkeyf);
system "setfacl --remove-all " . pp($hstprvkeyf);
system "chgrp None " . pp($hstprvkeyf);
}
elsif($^O eq 'MSWin32') {
# https://ss64.com/nt/icacls.html