csih_use_file_etc()

Houder houder@xs4all.nl
Thu Jan 8 11:17:00 GMT 2015


Hi Corinna,

Suggestion ...

Replace in csih_use_file_etc() -- see file /usr/share/csih/cygwin-service-installation-helper.sh

grep -Eq "^${file}:.*\<db\>" /etc/nsswitch.conf || use_file=0

by
grep -Eq "^${file}:[^#]*\<db\>" /etc/nsswitch.conf || use_file=0

Otherwise 'comment' like below will NOT be ignored in file /etc/nsswitch.conf:

passwd: files # db

csih_use_file_etc() is invoked by csih_create_privileged_user(), which is invoked
by install_service() (in file /usr/bin/ssh-host-config).

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list