From: Michael R Sweet Date: Fri, 15 Feb 2019 22:04:53 +0000 (-0500) Subject: Missing printer-uri when enabling printer (mirror fix from master). X-Git-Tag: v2.2.11~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=019198b76b1164cfad27cd4543acb08e7db01f9e;p=thirdparty%2Fcups.git Missing printer-uri when enabling printer (mirror fix from master). --- diff --git a/systemv/lpadmin.c b/systemv/lpadmin.c index e979e56c4f..85604ac401 100644 --- a/systemv/lpadmin.c +++ b/systemv/lpadmin.c @@ -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());