This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

csih_use_file_etc()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]