From: msweet Date: Tue, 6 Aug 2013 16:15:50 +0000 (+0000) Subject: The IPP backend did not add the "last-document" attribute X-Git-Tag: release-1.7.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee8618f3fd511e5b1f4a595a4cb5be8b160ffb86;p=thirdparty%2Fcups.git The IPP backend did not add the "last-document" attribute () git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11220 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-1.6.txt b/CHANGES-1.6.txt index 5e2b8c087d..0f00d314b0 100644 --- a/CHANGES-1.6.txt +++ b/CHANGES-1.6.txt @@ -3,6 +3,8 @@ CHANGES-1.6.txt CHANGES IN CUPS V1.6.4 + - The IPP backend did not add the "last-document" attribute + () - Added a SyncOnClose directive to cups-files.conf to force cupsd to call fsync before closing any configuration/state files it writes () diff --git a/backend/ipp.c b/backend/ipp.c index b3049d85f8..1bbd73c3f9 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -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,