summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-11-11 15:54:54 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-11-11 15:54:54 +1100
commitbd2d54fc1eee84bf87158a1277a50e6c8a303339 (patch)
treeba0e80fb3d722fde0ceb88ec7ec2eda895e0bb11 /contrib
parentd0153c77bf7964e694f1d26c56c41a571b8e9466 (diff)
downloadopenssh-git-bd2d54fc1eee84bf87158a1277a50e6c8a303339.tar.gz
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 'contrib')
-rw-r--r--contrib/cygwin/ssh-host-config2
1 files changed, 1 insertions, 1 deletions
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