]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The `ipptool` program no longer checks for duplicate attributes when running
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 3 Apr 2018 00:15:07 +0000 (20:15 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 3 Apr 2018 00:15:07 +0000 (20:15 -0400)
in list or CSV mode (Issue #5278)

test/ipptool.c

index 658927ae08efa28f347333788c34063c31969e4b..9c57ca2b9a48cd1d73a8bb16654cfa9a4b388341 100644 (file)
@@ -3044,7 +3044,7 @@ do_tests(cups_file_t  *outfile,           /* I - Output file */
 
           if (attrptr->name)
           {
-            if (cupsArrayFind(a, attrptr->name))
+            if (cupsArrayFind(a, attrptr->name) && Output < _CUPS_OUTPUT_LIST)
               add_stringf(errors, "Duplicate \"%s\" attribute in %s group",
                          attrptr->name, ippTagString(group));