[PATCH] Fix failing nss/tst-nss-files-hosts-long with local resolver

DJ Delorie dj@redhat.com
Fri Sep 3 03:27:17 GMT 2021


Aurelien Jarno <aurelien@aurel32.net> writes:
> Fix that by providing a simple nsswitch.conf file forcing access to
> /etc/hosts for that test. I have tested that the only changed result in
> the testsuite is that test.

LGTM.
Reviewed-by: DJ Delorie <dj@redhat.com>

>  nss/tst-nss-files-hosts-long.root/etc/nsswitch.conf | 1 +
>  1 file changed, 1 insertion(+)
>  create mode 100644 nss/tst-nss-files-hosts-long.root/etc/nsswitch.conf
>
> diff --git a/nss/tst-nss-files-hosts-long.root/etc/nsswitch.conf b/nss/tst-nss-files-hosts-long.root/etc/nsswitch.conf
> new file mode 100644
> index 0000000000..5b0c6a4199
> --- /dev/null
> +++ b/nss/tst-nss-files-hosts-long.root/etc/nsswitch.conf
> @@ -0,0 +1 @@
> +hosts: files



More information about the Libc-alpha mailing list