s3-printing: fix move_driver_to_download_area() error paths
commit14446b528069bc27222929bb38cf72099e450018
authorDavid Disseldorp <ddiss@suse.de>
Tue, 1 Mar 2011 18:17:47 +0000 (1 19:17 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 1 Mar 2011 23:31:22 +0000 (2 00:31 +0100)
treecea2b876c0803492227d58e37fb01f0f2728d0a1
parent9f6193724e8f55854aaba39591edecf7029ad8f3
s3-printing: fix move_driver_to_download_area() error paths

WERR_ACCESS_DENIED errors are mapped to WERR_UNKNOWN_PRINTER_DRIVER,
resulting in incorrect error messages on Windows clients.

move_driver_to_download_area() returns the same error status values
to the caller via the *perr argument as well as the return value.

The create_directory() call is not checked for error.
source3/include/nt_printing.h
source3/printing/nt_printing.c
source3/rpc_server/spoolss/srv_spoolss_nt.c