summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-02-02 16:22:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:32 -0500
commit6ca54f00f6c723907cb6da548985f685ab0fbe13 (patch)
tree63f21b90063ee46b1570e6006022a4e6211a134a /source3/utils/testparm.c
parent9dbb5769fe70d3c0e2a2c679a42104bc15d42bc7 (diff)
downloadsamba-6ca54f00f6c723907cb6da548985f685ab0fbe13.tar.gz
samba-6ca54f00f6c723907cb6da548985f685ab0fbe13.tar.bz2
samba-6ca54f00f6c723907cb6da548985f685ab0fbe13.zip
r5176: Warn the user that print command is ignored when using cups libraries
(This used to be commit 142461204718d489bbeff451878a52208b9891bc)
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r--source3/utils/testparm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index e131407831..dfd12c7a58 100644
--- a/source3/utils/testparm.c
+++ b/source3/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
}
}