]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The lpadmin command did not send the PPD name from the "-m" option
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 18 Oct 2013 21:14:44 +0000 (21:14 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 18 Oct 2013 21:14:44 +0000 (21:14 +0000)
(<rdar://problem/15264697>)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11344 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-1.7.txt
cgi-bin/admin.c
systemv/lpadmin.c

index 3a5ef5bc10664d5b6c1c803afb84b9ebf5c4305d..ca4af37f004ce674ceeaafa07f1cc7b117206fb0 100644 (file)
@@ -4,6 +4,8 @@ CHANGES-1.7.txt
 CHANGES IN CUPS V1.7.0
 
        - Updated the Japanese localization.
+       - The lpadmin command did not send the PPD name from the "-m" option
+         (<rdar://problem/15264697>)
        - Network backends now use the prtMarkerSuppliesClass property to
          determine the direction of supply level values
          (<rdar://problem/14302628>)
index cecbba41831d5700b385d658291ccbba8b7bc120..5589c1155e30ab9952f3aaadc771a6d25fb3642c 100644 (file)
@@ -1348,20 +1348,20 @@ do_am_printer(http_t *http,             /* I - HTTP connection */
     ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri",
                  NULL, uri);
 
-    ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-location",
-                 NULL, cgiGetVariable("PRINTER_LOCATION"));
-
-    ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info",
-                 NULL, cgiGetVariable("PRINTER_INFO"));
-
     if (!file)
     {
       var = cgiGetVariable("PPD_NAME");
       if (strcmp(var, "__no_change__"))
-       ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "ppd-name",
+       ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "ppd-name",
                     NULL, var);
     }
 
+    ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-location",
+                 NULL, cgiGetVariable("PRINTER_LOCATION"));
+
+    ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info",
+                 NULL, cgiGetVariable("PRINTER_INFO"));
+
     strlcpy(uri, cgiGetVariable("DEVICE_URI"), sizeof(uri));
 
    /*
index d954e75fb8e1935f5d5b262ca12148ad86cc7925..a0ed62c6cf9b45c31d9b1c4c877d6b642471d2e6 100644 (file)
@@ -1295,6 +1295,7 @@ set_printer_options(
   * Add the options...
   */
 
+  cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION);
   cupsEncodeOptions2(request, num_options, options, IPP_TAG_PRINTER);
 
   if ((protocol = cupsGetOption("protocol", num_options, options)) != NULL)