Blame SOURCES/cups-ipp-multifile.patch
|
|
ea9550 |
diff -up cups-1.6.3/backend/ipp.c.ipp-multifile cups-1.6.3/backend/ipp.c
|
|
|
ea9550 |
--- cups-1.6.3/backend/ipp.c.ipp-multifile 2013-08-06 17:17:19.359471503 +0100
|
|
|
ea9550 |
+++ cups-1.6.3/backend/ipp.c 2013-08-06 17:19:03.346990727 +0100
|
|
|
ea9550 |
@@ -1682,10 +1682,13 @@ main(int argc, /* I - Number of comm
|
|
|
ea9550 |
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
|
|
|
ea9550 |
"requesting-user-name", NULL, argv[2]);
|
|
|
ea9550 |
|
|
|
ea9550 |
- if ((i + 1) >= num_files)
|
|
|
ea9550 |
- ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1);
|
|
|
ea9550 |
+ ippAddBoolean(request, IPP_TAG_OPERATION, "last-document",
|
|
|
ea9550 |
+ (i + 1) >= num_files);
|
|
|
ea9550 |
|
|
|
ea9550 |
- if (document_format)
|
|
|
ea9550 |
+ if (num_files > 1)
|
|
|
ea9550 |
+ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
|
|
|
ea9550 |
+ "document-format", NULL, "application/octet-stream");
|
|
|
ea9550 |
+ else if (document_format)
|
|
|
ea9550 |
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
|
|
|
ea9550 |
"document-format", NULL, document_format);
|
|
|
ea9550 |
|