]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The IPP backend did not add the "last-document" attribute
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 6 Aug 2013 16:15:50 +0000 (16:15 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 6 Aug 2013 16:15:50 +0000 (16:15 +0000)
(<rdar://problem/114660379>)

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

CHANGES-1.6.txt
backend/ipp.c

index 5e2b8c087d82e02277ae7daeb59ebbda8af65d10..0f00d314b052ba7990e25b7c7a575d2c7ee2078d 100644 (file)
@@ -3,6 +3,8 @@ CHANGES-1.6.txt
 
 CHANGES IN CUPS V1.6.4
 
+       - The IPP backend did not add the "last-document" attribute
+         (<rdar://problem/114660379>)
        - Added a SyncOnClose directive to cups-files.conf to force cupsd to
          call fsync before closing any configuration/state files it writes
          (<rdar://problem/14523043>)
index b3049d85f823cf5274feb5da9ec1f69d2e2dc392..1bbd73c3f9e7c89fa88f45981c8ce5fc31697e5e 100644 (file)
@@ -1699,8 +1699,8 @@ main(int  argc,                           /* I - Number of command-line args */
          ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
                        "requesting-user-name", NULL, argv[2]);
 
-        if ((i + 1) >= num_files)
-         ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1);
+       ippAddBoolean(request, IPP_TAG_OPERATION, "last-document",
+                     (i + 1) >= num_files);
 
        if (document_format)
          ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,