s3-spoolss: fix printer_driver_files_in_use() call ordering
authorDavid Disseldorp <ddiss@samba.org>
Tue, 17 Jan 2012 16:06:38 +0000 (17:06 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 19:46:24 +0000 (20:46 +0100)
commit8e3c0ac2815bc25360bf408c50449d154b841f8a
tree5bdd2241c497c2373252a62cfe61603585ddc0f3
parent54bc662adb24be9950c827446130b91504965c8c
s3-spoolss: fix printer_driver_files_in_use() call ordering

printer_driver_files_in_use() performs two tasks: it returns whether any
of the files in the to-be-deleted driver overlap with other drivers, it
also trims such files from the info structure passed in.

In processing a DeletePrinterDataEx request with DPD_DELETE_UNUSED_FILES
set, printer_driver_files_in_use() must be called to ensure files in
use by other drivers are not removed.

https://bugzilla.samba.org/show_bug.cgi?id=4942
source3/rpc_server/spoolss/srv_spoolss_nt.c