diff options
author | Gerald Carter <jerry@samba.org> | 2005-06-15 17:03:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:16 -0500 |
commit | f2f115c2a203c1a7b685ff3795c9e342499c1cc9 (patch) | |
tree | c421d2e269100b0c54deae763b98743d8deb0f66 /source3/rpc_server/srv_spoolss_nt.c | |
parent | 9b43bd3b62733992d06b6d8e602364efa816685c (diff) | |
download | samba-f2f115c2a203c1a7b685ff3795c9e342499c1cc9.tar.gz samba-f2f115c2a203c1a7b685ff3795c9e342499c1cc9.tar.bz2 samba-f2f115c2a203c1a7b685ff3795c9e342499c1cc9.zip |
r7614: convert move_driver_to_download_area() to return WERROR in order to provide better error messages to clients when a AddPrinterDriver[Ex]() call fails
(This used to be commit c98e17446afffc4b12f1a31f6e5cce517fc0a95b)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 39c294fa45..972f6e9730 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -7628,9 +7628,7 @@ WERROR _spoolss_addprinterdriver(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVER *q_u, goto done; DEBUG(5,("Moving driver to final destination\n")); - if(!move_driver_to_download_area(driver, level, &user, &err)) { - if (W_ERROR_IS_OK(err)) - err = WERR_ACCESS_DENIED; + if( !W_ERROR_IS_OK(err = move_driver_to_download_area(driver, level, &user, &err)) ) { goto done; } |