summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-05 15:03:31 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-06 11:16:11 +1000
commitf453117569e04087ae461677717b14cdd65a4cd4 (patch)
tree65fcd1816e2edb947fa736752ed237e04b65af34 /source3/utils
parente00ac55994ad7d067f7f628ae4157f0d23f819c4 (diff)
downloadsamba-f453117569e04087ae461677717b14cdd65a4cd4.tar.gz
samba-f453117569e04087ae461677717b14cdd65a4cd4.tar.bz2
samba-f453117569e04087ae461677717b14cdd65a4cd4.zip
s3-printing: Restrict printing=cups to systems with cups development headers at build time
This means that instead of failing due to the default commandline values not being quite correct that we clearly fail at loadparm and testparm time when parsing the printing= line. Andrew Bartlett
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/testparm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 105f1c5746..a9793ab4cd 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -333,13 +333,11 @@ static void do_per_share_checks(int s)
"%s. Map system can only work if force create mode "
"excludes octal 010 (S_IXGRP).\n", lp_servicename(talloc_tos(), s));
}
-#ifdef HAVE_CUPS
if (lp_printing(s) == PRINT_CUPS && *(lp_printcommand(talloc_tos(), s)) != '\0') {
fprintf(stderr,"Warning: Service %s defines a print command, but \
rameter is ignored when using CUPS libraries.\n",
lp_servicename(talloc_tos(), s) );
}
-#endif
}
int main(int argc, const char *argv[])