]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Do not compress print jobs by default except for certain raster formats.
authorMichael R Sweet <michaelrsweet@gmail.com>
Mon, 4 Apr 2016 19:13:08 +0000 (15:13 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Mon, 4 Apr 2016 19:13:08 +0000 (15:13 -0400)
CHANGES.txt
backend/ipp.c
doc/help/man-lpadmin.html

index 17008029463c39f871d9d9586261293581a6e1fa..75eaaee68ed5c52e566f049cae24ab6efd10871b 100644 (file)
@@ -1,8 +1,11 @@
-CHANGES.txt - 2.2b1 - 2016-03-30
+CHANGES.txt - 2.2b1 - 2016-04-04
 --------------------------------
 
 CHANGES IN CUPS V2.2b1
 
+       - The IPP backend no longer enables compression by default except for
+         certain raster formats that generally benefit from it
+         (<rdar://problem/25166952>)
        - The scheduler did not handle out-of-disk situations gracefully
          (Issue #4742)
        - The LPD mini-daemon now detects invalid UTF-8 sequences in job,
index 69aa69453fa3a9b65c94fdbe2887047cc107faa9..943fddae612029ea02aae94b60f30fc90cf78aa7 100644 (file)
@@ -1096,7 +1096,7 @@ main(int  argc,                           /* I - Number of command-line args */
                         "compression value \"%s\".\n", compression);
         compression = NULL;
       }
-      else if (!compression)
+      else if (!compression && (!strcmp(final_content_type, "image/pwg-raster") || !strcmp(final_content_type, "image/urf")))
       {
         if (ippContainsString(compression_sup, "gzip"))
           compression = "gzip";
@@ -1357,24 +1357,10 @@ main(int  argc,                         /* I - Number of command-line args */
 
   if (format_sup != NULL)
   {
-    for (i = 0; i < format_sup->num_values; i ++)
-      if (!_cups_strcasecmp(final_content_type,
-                            format_sup->values[i].string.text))
-      {
-        document_format = final_content_type;
-       break;
-      }
-
-    if (!document_format)
-    {
-      for (i = 0; i < format_sup->num_values; i ++)
-       if (!_cups_strcasecmp("application/octet-stream",
-                             format_sup->values[i].string.text))
-       {
-         document_format = "application/octet-stream";
-         break;
-       }
-    }
+    if (ippContainsString(format_sup, final_content_type))
+      document_format = final_content_type;
+    else if (ippContainsString(format_sup, "application/octet-stream"))
+      document_format = "application/octet-stream";
   }
 
   fprintf(stderr, "DEBUG: final_content_type=\"%s\", document_format=\"%s\"\n",
index 775e7e9bcd52ee1901ce136be1b45a538fc53aa3..473ab2bff2ad5e95eff57296a6a149af2992003c 100644 (file)
@@ -136,6 +136,7 @@ If the resulting class becomes empty it is removed.
 <dd style="margin-left: 5.0em">Sets user-level access control on a destination.
 Names starting with "@" are interpreted as UNIX groups.
 The latter two forms turn user-level access control off.
+Note: The user 'root' is not granted special access - using "-u allow:foo,bar" will allow users 'foo' and 'bar' to access the printer but NOT 'root'.
 <dt><b>-v "</b><i>device-uri</i><b>"</b>
 <dd style="margin-left: 5.0em">Sets the <i>device-uri</i> attribute of the printer queue.
 Use the <i>-v</i> option with the
@@ -173,7 +174,7 @@ Create an IPP Everywhere print queue:
 <a href="man-lpoptions.html?TOPIC=Man+Pages"><b>lpoptions</b>(1),</a>
 CUPS Online Help (<a href="http://localhost:631/help">http://localhost:631/help</a>)
 <h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
-Copyright &copy; 2007-2015 by Apple Inc.
+Copyright &copy; 2007-2016 by Apple Inc.
 
 </body>
 </html>