@@ -1678,9 +1678,18 @@ ppdCreateFromIPP2(char *buffer, /* I - Filename buffer */
16781678 cupsFilePuts (fp , "*PCFileName: \"drvless.ppd\"\n" );
16791679
16801680 if ((attr = ippFindAttribute (response , "ipp-features-supported" ,
1681- IPP_TAG_KEYWORD ))!= NULL &&
1681+ IPP_TAG_KEYWORD )) != NULL &&
16821682 ippContainsString (attr , "faxout" ))
1683- is_fax = 1 ;
1683+ {
1684+ attr = ippFindAttribute (response , "printer-uri-supported" ,
1685+ IPP_TAG_URI );
1686+ if (attr )
1687+ {
1688+ ippAttributeString (attr , buf , sizeof (buf ));
1689+ if (strcasestr (buf , "faxout" ))
1690+ is_fax = 1 ;
1691+ }
1692+ }
16841693
16851694 if ((attr = ippFindAttribute (response , "printer-make-and-model" ,
16861695 IPP_TAG_TEXT )) != NULL )
@@ -4220,12 +4229,13 @@ ppdCreateFromIPP2(char *buffer, /* I - Filename buffer */
42204229 free (max_res );
42214230
42224231 snprintf (ppdgenerator_msg , sizeof (ppdgenerator_msg ),
4223- "%s PPD generated." ,
4224- (is_pdf ? "PDF " :
4232+ "%s %sPPD generated." ,
4233+ (is_apple ? "Apple Raster " :
42254234 (is_pwg ? "PWG Raster" :
4226- (is_apple ? "Apple Raster " :
4235+ (is_pdf ? "PDF " :
42274236 (is_pclm ? "PCLm" :
4228- "Legacy IPP printer" )))));
4237+ "Legacy IPP printer" )))),
4238+ (is_fax ? "Fax " : "" ));
42294239
42304240 cupsFileClose (fp );
42314241 if (printer_opt_strings_catalog )
0 commit comments