diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-11-11 05:54:54 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-11-11 05:54:54 +0100 |
commit | bd2d54fc1eee84bf87158a1277a50e6c8a303339 (patch) | |
tree | ba0e80fb3d722fde0ceb88ec7ec2eda895e0bb11 /contrib/cygwin/ssh-host-config | |
parent | AC_CHECK_SIZEOF() no longer needs a second argument. (diff) | |
download | openssh-bd2d54fc1eee84bf87158a1277a50e6c8a303339.tar.xz openssh-bd2d54fc1eee84bf87158a1277a50e6c8a303339.zip |
Remove hardcoded service name in cygwin setup.
bz#2922, patch from Christian.Lupien at USherbrooke.ca, sanity check
by vinschen at redhat.com.
Diffstat (limited to '')
-rw-r--r-- | contrib/cygwin/ssh-host-config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config index 261020af3..e9f038db5 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 |