summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-23 22:46:08 +0100
committerVolker Lendecke <vl@samba.org>2008-11-24 11:39:03 +0100
commit783ab0480b7c1454a95cdb414d3277a8fa543e9a (patch)
tree85a90969b2fb88491f74ca201db08d46805f6701 /source3/rpc_server
parent798b9e1ad6bbdcf873285d0e1c5008e566744162 (diff)
downloadsamba-783ab0480b7c1454a95cdb414d3277a8fa543e9a.tar.gz
samba-783ab0480b7c1454a95cdb414d3277a8fa543e9a.tar.bz2
samba-783ab0480b7c1454a95cdb414d3277a8fa543e9a.zip
Convert move_driver_to_download_area to use create_conn_struct
This removes a use of struct current_user and the vuid The become_user() here is unnecessary, within the spoolss handling code we have switched to the authenticated pipe user anyway. Jerry, please check!
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 59c1323a0f..cc958aa8a6 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7860,7 +7860,8 @@ WERROR _spoolss_addprinterdriver(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVER *q_u,
goto done;
DEBUG(5,("Moving driver to final destination\n"));
- if( !W_ERROR_IS_OK(err = move_driver_to_download_area(driver, level, &p->pipe_user, &err)) ) {
+ if( !W_ERROR_IS_OK(err = move_driver_to_download_area(p, driver, level,
+ &err)) ) {
goto done;
}