summaryrefslogtreecommitdiff
path: root/systemv
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-08-18 09:01:32 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-08-18 09:01:32 -0400
commit7d4510a090b0b67e511514fb7b0c69de4e79ef47 (patch)
treee716a2170e309410083ef2943429acad0738d880 /systemv
parent06e79a5e748fc71918072008edb0a5db45d7e9d7 (diff)
downloadcups-7d4510a090b0b67e511514fb7b0c69de4e79ef47.tar.gz
Sync up with changes from 2.2.x.
Diffstat (limited to 'systemv')
-rw-r--r--systemv/lpadmin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/systemv/lpadmin.c b/systemv/lpadmin.c
index aaebd3eed..bd4eb0164 100644
--- a/systemv/lpadmin.c
+++ b/systemv/lpadmin.c
@@ -608,10 +608,18 @@ main(int argc, /* I - Number of command-line arguments */
if (ppd_name && !strcmp(ppd_name, "raw"))
{
+#ifdef __APPLE__
+ _cupsLangPuts(stderr, _("lpadmin: Raw queues are no longer supported on macOS."));
+#else
_cupsLangPuts(stderr, _("lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS."));
+#endif /* __APPLE__ */
if (device_uri && (!strncmp(device_uri, "ipp://", 6) || !strncmp(device_uri, "ipps://", 7)) && strstr(device_uri, "/printers/"))
_cupsLangPuts(stderr, _("lpadmin: Use the 'everywhere' model for shared printers."));
+
+#ifdef __APPLE__
+ return (1);
+#endif /* __APPLE__ */
}
else if (ppd_name && !strcmp(ppd_name, "everywhere") && device_uri)
{