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 */
filename = tmpfilename;
files = &filename;
num_files = 1;
+
+ send_options = 0;
}
else
{
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);
content_type = "application/postscript";
copies = 1;
copies_remaining = 1;
+ send_options = 0;
}
}
#endif /* __APPLE__ */
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