[PATCH] nss: use C locale for parsing nsswitch.conf (bug 33519)

Florian Weimer fweimer@redhat.com
Wed Oct 8 12:16:14 GMT 2025


* Andreas Schwab:

> The keywords in nsswitch.conf are ASCII-only, but some locales map ASCII
> charactes to non-ASCII characters in case conversion.
> ---
>  nss/Makefile                                  |  6 +++
>  nss/nss_action_parse.c                        | 32 ++++++++------
>  nss/tst-nss-action-parse.c                    | 42 +++++++++++++++++++
>  nss/tst-nss-action-parse.root/etc/group       |  1 +
>  .../etc/nsswitch.conf                         |  1 +
>  5 files changed, 70 insertions(+), 12 deletions(-)
>  create mode 100644 nss/tst-nss-action-parse.c
>  create mode 100644 nss/tst-nss-action-parse.root/etc/group
>  create mode 100644 nss/tst-nss-action-parse.root/etc/nsswitch.conf

Looks okay, thank you.

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Florian



More information about the Libc-alpha mailing list