allow the 'printing' parameter to be set on a per share basis.
commit923a0bed5c6062e620ed3d4ba57c01e6eb86b5b6
authorGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 14:29:01 +0000 (2 14:29 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 14:29:01 +0000 (2 14:29 +0000)
tree10077de2a2ca5e4cb6ff21d26b4226d6d87c4d13
parent4faa480a4a5662b73012680d3f3f2284fdc7af60
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.
(This used to be commit e721255e8f7d719dbcc2cad94c9b11f6124676e6)
source3/printing/printing.c