don't reverse lookup IP address in URI (#975822)
This commit is contained in:
parent
5b47cadf23
commit
d297362f83
27
cups-filters-lookup.patch
Normal file
27
cups-filters-lookup.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff -up cups-filters-1.0.34/utils/cups-browsed.c.lookup cups-filters-1.0.34/utils/cups-browsed.c
|
||||
--- cups-filters-1.0.34/utils/cups-browsed.c.lookup 2013-06-26 16:23:38.000000000 +0200
|
||||
+++ cups-filters-1.0.34/utils/cups-browsed.c 2013-06-26 16:24:28.491804795 +0200
|
||||
@@ -990,23 +990,6 @@ found_cups_printer (const char *remote_h
|
||||
debug_printf("cups-browsed: browsed queue name is %s\n",
|
||||
local_resource + 9);
|
||||
|
||||
- /* Does the host need resolving? */
|
||||
- if (host[strspn (host, "0123456789.")] == '\0') {
|
||||
- /* Yes. Resolve it. */
|
||||
- struct addrinfo hints, *addr;
|
||||
- memset(&hints, 0, sizeof(struct addrinfo));
|
||||
- hints.ai_family = AF_UNSPEC;
|
||||
- hints.ai_socktype = SOCK_DGRAM;
|
||||
- hints.ai_flags = 0;
|
||||
- hints.ai_protocol = 0;
|
||||
- if (!getaddrinfo (host, NULL, &hints, &addr)) {
|
||||
- getnameinfo (addr->ai_addr, addr->ai_addrlen,
|
||||
- host, sizeof(host),
|
||||
- NULL, 0, 0);
|
||||
- freeaddrinfo (addr);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
generate_local_queue(host, port, local_resource, info ? info : "", "", "");
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{versio
|
||||
Source1: cups-browsed.service
|
||||
|
||||
Patch1: cups-filters-man.patch
|
||||
Patch2: cups-filters-lookup.patch
|
||||
|
||||
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
@ -98,6 +99,7 @@ This is the development package for OpenPrinting CUPS filters and backends.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .man
|
||||
%patch2 -p1 -b .lookup
|
||||
|
||||
%build
|
||||
# work-around Rpath
|
||||
@ -208,6 +210,7 @@ fi
|
||||
%changelog
|
||||
* Mon Jul 01 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-2
|
||||
- add cups-browsed(8) and cups-browsed.conf(5)
|
||||
- don't reverse lookup IP address in URI (#975822)
|
||||
|
||||
* Wed Jun 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-1
|
||||
- 1.0.35
|
||||
|
Loading…
Reference in New Issue
Block a user