]> git.ipfire.org Git - thirdparty/cups.git/commit
create_local_printer(): Improved comparison of device URI host name create-local-printer-localhost-fix 353/head
authorTill Kamppeter <till.kamppeter@gmail.com>
Fri, 10 Jun 2022 19:19:29 +0000 (21:19 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 16 Jun 2022 09:43:09 +0000 (11:43 +0200)
commite5a6bc2ee8ed978cf290a009411edeac26193b03
tree6ffd64a4cfd897688458f3876e02a4aa75c53743
parent3adaa91ac5aceac6699679ce8d0990cb1f136787
create_local_printer(): Improved comparison of device URI host name

Improved the comparison of the device URI host name with the CUPS
server's host name to find out whether the temporary queue is for a
local IPP service.

- Compare case-insensitively as host names are case-insensitive

- If we have the DNS-SD host name (DNSSDHostName) of the CUPS server,
  consider names equal if they only differ by the presence or absense
  of a trailing dot ('.')

- If we only have the ServerName (for example with "Browsing = Off",
  not sharing printers), consider also a server name without ".local"
  equal to a device URI host name with ".local" as equal.
scheduler/ipp.c