]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Missing printer-uri when enabling printer (mirror fix from master).
authorMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 15 Feb 2019 22:04:53 +0000 (17:04 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 15 Feb 2019 22:04:53 +0000 (17:04 -0500)
systemv/lpadmin.c

index e979e56c4f7572799fbac0a2b7d4a1f8ff7e9683..85604ac401d4190f61c5f7835f03d79156112e1a 100644 (file)
@@ -1140,6 +1140,7 @@ enable_printer(http_t *http,              /* I - Server connection */
 
   request = ippNewRequest(IPP_OP_ENABLE_PRINTER);
 
+  httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/printers/%s", printer);
   ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
   ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser());