From 13a14c11b43f0d3454feb7dec69a85c4c512b77f Mon Sep 17 00:00:00 2001 From: Armaan Sandhu Date: Mon, 2 Nov 2026 18:19:39 -0500 Subject: [PATCH] ppd-filter: fix & typo in the filter-streaming-mode check the check for filter-streaming-mode used & instead of && between the "off" and "no" comparisons. strcasecmp("on", "off") & strcasecmp("on", "no") is 8 & 1 == 0 with glibc, so filter-streaming-mode=on never actualy turned Streaming mode on. --- ppd/ppd-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppd/ppd-filter.c b/ppd/ppd-filter.c index 8c2dd01c..9c342752 100644 --- a/ppd/ppd-filter.c +++ b/ppd/ppd-filter.c @@ -1222,7 +1222,7 @@ ppdFilterEmitJCL(int inputfd, // I - File descriptor input stream if (orig_filter == cfFilterPDFToPDF && (val = cupsGetOption("filter-streaming-mode", data->num_options, data->options)) != NULL && - (strcasecmp(val, "false") && strcasecmp(val, "off") & + (strcasecmp(val, "false") && strcasecmp(val, "off") && strcasecmp(val, "no"))) { streaming = 1;