mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-27 19:31:11 +00:00
Remove hardcoded service name in cygwin setup.
bz#2922, patch from Christian.Lupien at USherbrooke.ca, sanity check by vinschen at redhat.com.
This commit is contained in:
parent
d0153c77bf
commit
bd2d54fc1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user