From: Michael Sweet Date: Thu, 22 Jun 2017 13:07:47 +0000 (-0400) Subject: Add cupsCheckDestSupported test to the supported action. X-Git-Tag: v2.2.4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca9e55c9b5887e1e1ebb7fbf0d098d8cf24bdaae;p=thirdparty%2Fcups.git Add cupsCheckDestSupported test to the supported action. --- diff --git a/cups/testdest.c b/cups/testdest.c index f7e6467d53..4e2cbed502 100644 --- a/cups/testdest.c +++ b/cups/testdest.c @@ -594,7 +594,8 @@ show_supported(http_t *http, /* I - Connection to destination */ } else if (!value) { - puts(option); + printf("%s (%s)\n", option, cupsCheckDestSupported(http, dest, dinfo, option, NULL) ? "supported" : "not-supported"); + if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL) { count = ippGetCount(attr);