allow the 'printing' parameter to be set on a per share basis.
authorGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 14:26:45 +0000 (14:26 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 2 Mar 2004 14:26:45 +0000 (14:26 +0000)
commitef36785beb02f56c44b62d427ef15e6b6fb22744
tree398bad539918ee130c0f76a297128d74b81dafd2
parent62a7e258a3c67fc653af83bc2e728cff70f8bea1
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 14de9c065787bd1675021a6cd6555f81ea965f17)
source3/printing/printing.c