summaryrefslogtreecommitdiff
path: root/contrib/cygwin/ssh-host-config
diff options
context:
space:
mode:
authorDamien Miller <djm@google.com>2014-11-05 11:01:31 +1100
committerDamien Miller <djm@google.com>2014-11-05 11:01:31 +1100
commit0e4cff5f35ed11102fe3783779960ef07e0cd381 (patch)
treee3cad7389dcea8036ea8c603df413b02cb6d9a25 /contrib/cygwin/ssh-host-config
parent7d0ba5336651731949762eb8877ce9e3b52df436 (diff)
Prepare scripts for next Cygwin release
Makes the Cygwin-specific ssh-user-config script independent of the existence of /etc/passwd. The next Cygwin release will allow to generate passwd and group entries from the Windows account DBs, so the scripts have to adapt. from Corinna Vinschen
Diffstat (limited to 'contrib/cygwin/ssh-host-config')
-rw-r--r--contrib/cygwin/ssh-host-config6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config
index a7ea3e0d2..301d5eb6e 100644
--- a/contrib/cygwin/ssh-host-config
+++ b/contrib/cygwin/ssh-host-config
@@ -1,6 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2# 2#
3# ssh-host-config, Copyright 2000-2011 Red Hat Inc. 3# ssh-host-config, Copyright 2000-2014 Red Hat Inc.
4# 4#
5# This file is part of the Cygwin port of OpenSSH. 5# This file is part of the Cygwin port of OpenSSH.
6# 6#
@@ -353,11 +353,9 @@ check_service_files_ownership() {
353 fi 353 fi
354 if [ -z "${run_service_as}" ] 354 if [ -z "${run_service_as}" ]
355 then 355 then
356 csih_warning "Couldn't determine name of user running sshd service from /etc/passwd!" 356 csih_warning "Couldn't determine name of user running sshd service from account database!"
357 csih_warning "As a result, this script cannot make sure that the files used" 357 csih_warning "As a result, this script cannot make sure that the files used"
358 csih_warning "by the sshd service belong to the user running the service." 358 csih_warning "by the sshd service belong to the user running the service."
359 csih_warning "Please re-run the mkpasswd tool to make sure the /etc/passwd"
360 csih_warning "file is in a good shape."
361 return 1 359 return 1
362 fi 360 fi
363 fi 361 fi