diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-11-11 15:54:54 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-11-11 15:54:54 +1100 |
commit | bd2d54fc1eee84bf87158a1277a50e6c8a303339 (patch) | |
tree | ba0e80fb3d722fde0ceb88ec7ec2eda895e0bb11 /contrib/cygwin/ssh-host-config | |
parent | d0153c77bf7964e694f1d26c56c41a571b8e9466 (diff) |
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/cygwin/ssh-host-config')
-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() { | |||
307 | 307 | ||
308 | if [ -z "${run_service_as}" ] | 308 | if [ -z "${run_service_as}" ] |
309 | then | 309 | then |
310 | accnt_name=$(/usr/bin/cygrunsrv -VQ sshd | | 310 | accnt_name=$(/usr/bin/cygrunsrv -VQ "${service_name}" | |
311 | /usr/bin/sed -ne 's/^Account *: *//gp') | 311 | /usr/bin/sed -ne 's/^Account *: *//gp') |
312 | if [ "${accnt_name}" = "LocalSystem" ] | 312 | if [ "${accnt_name}" = "LocalSystem" ] |
313 | then | 313 | then |