diff options
author | David Disseldorp <ddiss@suse.de> | 2011-03-01 19:17:47 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-03-02 00:31:22 +0100 |
commit | 14446b528069bc27222929bb38cf72099e450018 (patch) | |
tree | cea2b876c0803492227d58e37fb01f0f2728d0a1 /source3/include | |
parent | 9f6193724e8f55854aaba39591edecf7029ad8f3 (diff) | |
download | samba-14446b528069bc27222929bb38cf72099e450018.tar.gz samba-14446b528069bc27222929bb38cf72099e450018.tar.bz2 samba-14446b528069bc27222929bb38cf72099e450018.zip |
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.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/nt_printing.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h index 6db306e2b0..02a72b32f1 100644 --- a/source3/include/nt_printing.h +++ b/source3/include/nt_printing.h @@ -170,8 +170,7 @@ bool delete_driver_files(const struct auth_serversupplied_info *server_info, const struct spoolss_DriverInfo8 *r); WERROR move_driver_to_download_area(struct pipes_struct *p, - struct spoolss_AddDriverInfoCtr *r, - WERROR *perr); + struct spoolss_AddDriverInfoCtr *r); WERROR clean_up_driver_struct(TALLOC_CTX *mem_ctx, struct pipes_struct *rpc_pipe, |