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 20:31:08 +0000 (21:31 +0100)
commit6230861e7212fbfa4dfff8bec2ed21de94e52d9d
tree5f0c1767faf397eaa6501269322988ac7ccc5ca4
parente6ef4d2451f5c35992281772591b8c740392b5a7
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
(cherry picked from commit 8e3c0ac2815bc25360bf408c50449d154b841f8a)
source3/rpc_server/spoolss/srv_spoolss_nt.c