]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/lpadmin.c
Eliminate use of private macOS security headers/APIs (Issue #5516)
[thirdparty/cups.git] / systemv / lpadmin.c
index 709949a629f5d8d847806af09382c8c44b8221e8..53580ff4e36e4bb2e0934ca922cb78f4bdf62023 100644 (file)
@@ -1125,6 +1125,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());