s3-printing: fix move_driver_to_download_area() error paths
authorDavid Disseldorp <ddiss@suse.de>
Tue, 1 Mar 2011 18:17:47 +0000 (19:17 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 1 Mar 2011 22:54:17 +0000 (14:54 -0800)
commit47b978d4119e797af3c0098e01add503d598eca0
tree5f57814e41a4861f82694bf8cd1be4c50dba5393
parent1ea17bacdb09d28a12a8b6ddeba3ac285cd9f905
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