s3-spoolss: fix printer_driver_files_in_use() call ordering
commit7123b592fe10f879d4e62ca25a35eefe82b02652
authorDavid Disseldorp <ddiss@samba.org>
Tue, 17 Jan 2012 16:06:38 +0000 (17 17:06 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 20 Jan 2012 16:44:06 +0000 (20 17:44 +0100)
treec01143308b628c33f55a5809ed248493456fa65a
parentb37f66c7b79e548aaa477ea0af12954ad2f2d205
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

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c