allow the 'printing' parameter to be set on a per share basis.
authorGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 14:29:01 +0000 (14:29 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 14:29:01 +0000 (14:29 +0000)
commite721255e8f7d719dbcc2cad94c9b11f6124676e6
tree44a8299ba963f1f8b3b216458ef7b5573d92d7a7
parentb790753f443092a65eeef7b146a18d4c5ffcb323
allow the 'printing' parameter to be set on a per share basis.
The problem was that the current_printif struct was set during
print_backend_init() based on the 'printcap name'.  So you could
not use cups and then override the setting for a specific printer
by setting 'printing = bsd' (a common setup for pdf generation
print services.

There is a subtle change in behavior in that the print
interface functions are selecting on the basis of lp_printing()
and not lp_printcap_name(), but the new behavior seems more
intuitive IMHO.
source/printing/printing.c