mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-25 03:41:57 +03:00
@ -102,10 +102,14 @@ if [ -n "${SSH}" ]; then
|
|||||||
echo "# ssh log: '${logfcli}'"
|
echo "# ssh log: '${logfcli}'"
|
||||||
chmod go-rwx "${PRIVKEY}"
|
chmod go-rwx "${PRIVKEY}"
|
||||||
if [[ "${uname}" = *'_NT'* ]]; then
|
if [[ "${uname}" = *'_NT'* ]]; then
|
||||||
export MSYS2_ARG_CONV_EXCL='/reset'
|
if [ -x /bin/setfacl ]; then
|
||||||
icacls "${PRIVKEY}" /reset
|
/bin/setfacl --remove-all "${PRIVKEY}"
|
||||||
icacls "${PRIVKEY}" /grant:r "${USERNAME}:(R)"
|
else
|
||||||
icacls "${PRIVKEY}" /inheritance:r
|
export MSYS2_ARG_CONV_EXCL='/reset'
|
||||||
|
icacls "${PRIVKEY}" /reset
|
||||||
|
icacls "${PRIVKEY}" /grant:r "${USERNAME}:(R)"
|
||||||
|
icacls "${PRIVKEY}" /inheritance:r
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
count=1
|
count=1
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
Reference in New Issue
Block a user