diff options
author | Jeremy Allison <jra@samba.org> | 2000-08-30 21:09:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-08-30 21:09:21 +0000 |
commit | c77bf3d9e2ef416050bd2a25576f8fa584107fb5 (patch) | |
tree | 5c8ee4b03ff434f339b332f32ce3670caea0033e /source3/rpc_server/srv_spoolss_nt.c | |
parent | 177b962dfe4c6215424ff2a2e69a4da3cecb3687 (diff) | |
download | samba-c77bf3d9e2ef416050bd2a25576f8fa584107fb5.tar.gz samba-c77bf3d9e2ef416050bd2a25576f8fa584107fb5.tar.bz2 samba-c77bf3d9e2ef416050bd2a25576f8fa584107fb5.zip |
Fixed error returns for moving printer driver files around so generic
"Access denied" isn't always returned. More fixes found using Gerald's
wonderful Win32 test progs :-).
Jeremy.
(This used to be commit 67b9d40e3df19523714430cb4457717575f2a61e)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index b9266c7ee1..8f58f72d73 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -4327,8 +4327,9 @@ uint32 _spoolss_addprinterdriver(pipes_struct *p, const UNISTR2 *server_name, clean_up_driver_struct(driver, level); DEBUG(5,("Moving driver to final destination\n")); - if(!move_driver_to_download_area(driver, level, &user)) { - err = ERROR_ACCESS_DENIED; + if(!move_driver_to_download_area(driver, level, &user, &err)) { + if (err == 0) + err = ERROR_ACCESS_DENIED; goto done; } |