]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
systemv/lpadmin.c: Don't generate deprecation warning for driverless:
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 12 Nov 2021 08:55:11 +0000 (09:55 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 12 Nov 2021 08:55:11 +0000 (09:55 +0100)
systemv/lpadmin.c

index 08e9ff8d3dc0f65386255b3601a3b650a5442d8d..379907b7e5e3cfe40ff1a08decaa1dab5dc7318c 100644 (file)
@@ -625,7 +625,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
     return (1);
 #endif /* __APPLE__ */
   }
-  else if ((ppd_name && strcmp(ppd_name, "everywhere")) || file)
+  else if ((ppd_name && strcmp(ppd_name, "everywhere") && strncmp(ppd_name, "driverless:", 11)) || file)
   {
     _cupsLangPuts(stderr, _("lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS."));
   }