glibc/nss/nss_compat
Florian Weimer 23ed36735a nss_compat: Do not use mmap to read database files (bug 26258)
This avoids crashes in case the files are truncated for some reason.
For typically file sizes, it is also going to be slightly faster.
Using __nss_files_fopen instead mirrors what nss_files does.

Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2020-07-21 07:33:08 +02:00
..
compat-grp.c nss_compat: Do not use mmap to read database files (bug 26258) 2020-07-21 07:33:08 +02:00
compat-initgroups.c nss_compat: Do not use mmap to read database files (bug 26258) 2020-07-21 07:33:08 +02:00
compat-pwd.c nss_compat: Do not use mmap to read database files (bug 26258) 2020-07-21 07:33:08 +02:00
compat-spwd.c nss_compat: Do not use mmap to read database files (bug 26258) 2020-07-21 07:33:08 +02:00
nisdomain.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nisdomain.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00