]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: accounts: Don't keep old schemes when parsing nsswitch.conf
authorDavid Macek via Cygwin-patches <cygwin-patches@cygwin.com>
Mon, 20 Apr 2020 17:21:00 +0000 (19:21 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 22 Apr 2020 07:32:33 +0000 (09:32 +0200)
commit969c8392fe3122af31c288fb88e3ba1942f881d2
tree61a9fa34a6b9d505cedab9ba6b9267095a70cb54
parentd5add9ee5e5e6e5dca97bc6061f427407c006de0
Cygwin: accounts: Don't keep old schemes when parsing nsswitch.conf

The implicit assumption seemed to be that any subsequent occurence of
the same setting in nsswitch.conf is supposed to rewrite the previous
ones completely.  This was not the case if the third or any further
schema was previously defined and the last line defined less than that
(but at least 2), for example:

```
db_home: windows cygwin /myhome/%U
db_home: cygwin desc
```

Let's document this behavior as well.

Signed-off-by: David Macek <david.macek.0@gmail.com>
winsup/cygwin/uinfo.cc
winsup/doc/ntsec.xml
This page took 0.032024 seconds and 5 git commands to generate.