]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix IPP printing for Xerox printers (STR #2349)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 23 Apr 2007 17:33:45 +0000 (17:33 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 23 Apr 2007 17:33:45 +0000 (17:33 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6459 7a7537e8-13f0-0310-91df-b6672ffda945

backend/ipp.c

index 460332286e71102e00c3a8a0dfb1b11fc2be306a..0053d6b9d12addd6d6d74f7a556eeaca2b54cd55 100644 (file)
@@ -101,6 +101,7 @@ main(int  argc,                             /* I - Number of command-line args */
      char *argv[])                     /* I - Command-line arguments */
 {
   int          i;                      /* Looping var */
+  int          send_options;           /* Send job options? */
   int          num_options;            /* Number of printer options */
   cups_option_t        *options;               /* Printer options */
   char         method[255],            /* Method in URI */
@@ -432,6 +433,8 @@ main(int  argc,                             /* I - Number of command-line args */
     filename  = tmpfilename;
     files     = &filename;
     num_files = 1;
+
+    send_options = 0;
   }
   else
   {
@@ -442,6 +445,8 @@ main(int  argc,                             /* I - Number of command-line args */
     num_files = argc - 6;
     files     = argv + 6;
 
+    send_options = strncasecmp(content_type, "application/vnd.cups-", 21) != 0;
+
 #ifdef HAVE_LIBZ
     if (compression)
       compress_files(num_files, files);
@@ -928,6 +933,7 @@ main(int  argc,                             /* I - Number of command-line args */
        content_type     = "application/postscript";
        copies           = 1;
        copies_remaining = 1;
+        send_options     = 0;
       }
     }
 #endif /* __APPLE__ */
@@ -943,7 +949,7 @@ main(int  argc,                             /* I - Number of command-line args */
                                    num_options, &options);
     }
 
-    if (copies_sup && version > 0)
+    if (copies_sup && version > 0 && send_options)
     {
      /*
       * Only send options if the destination printer supports the copies