[PATCH] nss: Compare hostname case insensitive

Ján Tomko jtomko at redhat.com
Fri May 27 11:44:55 UTC 2022


On a Friday in 2022, Michal Privoznik wrote:
>There are some tools that convert hostname to lowercase before
>resolving it (e.g. ssh). In a way it makes sense because DNS is
>case insensitive and in case of ssh the lowercase version is then
>used to find matching record in its config file. However, our NSS
>module performs case sensitive comparison, which makes it useless
>with ssh. Just consider a machine named FooBar.
>
>Therefore, switch to case insensitive string comparison.
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1777873
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> build-aux/syntax-check.mk      | 2 +-
> tests/nsstest.c                | 1 +
> tools/nss/libvirt_nss_leases.c | 2 +-
> tools/nss/libvirt_nss_macs.c   | 2 +-
> 4 files changed, 4 insertions(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220527/20b58419/attachment-0001.sig>


More information about the libvir-list mailing list