Blame SOURCES/cups-filters-lookup.patch
|
|
b95efc |
diff -up cups-filters-1.0.34/utils/cups-browsed.c.lookup cups-filters-1.0.34/utils/cups-browsed.c
|
|
|
b95efc |
--- cups-filters-1.0.34/utils/cups-browsed.c.lookup 2013-06-26 16:23:38.000000000 +0200
|
|
|
b95efc |
+++ cups-filters-1.0.34/utils/cups-browsed.c 2013-06-26 16:24:28.491804795 +0200
|
|
|
b95efc |
@@ -990,23 +990,6 @@ found_cups_printer (const char *remote_h
|
|
|
b95efc |
debug_printf("cups-browsed: browsed queue name is %s\n",
|
|
|
b95efc |
local_resource + 9);
|
|
|
b95efc |
|
|
|
b95efc |
- /* Does the host need resolving? */
|
|
|
b95efc |
- if (host[strspn (host, "0123456789.")] == '\0') {
|
|
|
b95efc |
- /* Yes. Resolve it. */
|
|
|
b95efc |
- struct addrinfo hints, *addr;
|
|
|
b95efc |
- memset(&hints, 0, sizeof(struct addrinfo));
|
|
|
b95efc |
- hints.ai_family = AF_UNSPEC;
|
|
|
b95efc |
- hints.ai_socktype = SOCK_DGRAM;
|
|
|
b95efc |
- hints.ai_flags = 0;
|
|
|
b95efc |
- hints.ai_protocol = 0;
|
|
|
b95efc |
- if (!getaddrinfo (host, NULL, &hints, &addr)) {
|
|
|
b95efc |
- getnameinfo (addr->ai_addr, addr->ai_addrlen,
|
|
|
b95efc |
- host, sizeof(host),
|
|
|
b95efc |
- NULL, 0, 0);
|
|
|
b95efc |
- freeaddrinfo (addr);
|
|
|
b95efc |
- }
|
|
|
b95efc |
- }
|
|
|
b95efc |
-
|
|
|
b95efc |
generate_local_queue(host, port, local_resource, info ? info : "", "", "");
|
|
|
b95efc |
}
|
|
|
b95efc |
|