From 904d478f07deabb401f741f88c67ab2e07f742bd Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 11 Nov 2018 15:54:54 +1100 Subject: Remove hardcoded service name in cygwin setup. bz#2922, patch from Christian.Lupien at USherbrooke.ca, sanity check by vinschen at redhat.com. --- contrib/cygwin/ssh-host-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config index 261020af..e9f038db 100644 --- a/contrib/cygwin/ssh-host-config +++ b/contrib/cygwin/ssh-host-config @@ -307,7 +307,7 @@ check_service_files_ownership() { if [ -z "${run_service_as}" ] then - accnt_name=$(/usr/bin/cygrunsrv -VQ sshd | + accnt_name=$(/usr/bin/cygrunsrv -VQ "${service_name}" | /usr/bin/sed -ne 's/^Account *: *//gp') if [ "${accnt_name}" = "LocalSystem" ] then -- cgit v1.2.3