s3:rpc_server/spoolss: remove reload_services check from delete_printer_hook()
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Dec 2011 10:03:29 +0000 (11:03 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Dec 2011 10:03:29 +0000 (11:03 +0100)
commit06c1c338e3fcaf6460f4e462c7f881ce2abc9ac7
treeaa7ea83f7fdaafaef151d5ef062416aedeb1c3cb
parente412b8bfcce46720b913d42ac7f56d4e024162f0
s3:rpc_server/spoolss: remove reload_services check from delete_printer_hook()

As the spoolss code can run embedded or external relative to the
smbd file server process, it's very tricky to verify if a share
is still in use.

Checking the result of the "deleteprinter command" command should
be enough to check for success. We should not return WERR_ACCESS_DENIED
if the share is still in use, by the current client, as the primary
printer definition is already deleted.

metze
source3/rpc_server/spoolss/srv_spoolss_nt.c