From 142461204718d489bbeff451878a52208b9891bc Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 2 Feb 2005 16:22:59 +0000 Subject: [PATCH] r5176: Warn the user that print command is ignored when using cups libraries --- source/utils/testparm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/utils/testparm.c b/source/utils/testparm.c index e1314078311..dfd12c7a58e 100644 --- a/source/utils/testparm.c +++ b/source/utils/testparm.c @@ -320,6 +320,13 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_ Map system can only work if force create mode excludes octal 010 (S_IXGRP).\n", lp_servicename(s) ); } +#ifdef HAVE_CUPS + if (lp_printing(s) == PRINT_CUPS && *(lp_printcommand(s)) != '\0') { + fprintf(stderr,"Warning: Service %s defines a print command, but \ +print command parameter is ignored when using CUPS libraries.\n", + lp_servicename(s) ); + } +#endif } } -- 2.11.4.GIT