summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-24 16:58:29 +0200
committerVolker Lendecke <vl@samba.org>2008-06-26 13:13:23 +0200
commitc885ae01ebbf2b2f5c75799c4e8b1b0c68b2d34e (patch)
treebd72fddd6ec2722ed57bae94298ab2c5bf04adf2 /source3/printing
parente2585b73e975e8a434533019fbab1b8bd045ca70 (diff)
downloadsamba-c885ae01ebbf2b2f5c75799c4e8b1b0c68b2d34e.tar.gz
samba-c885ae01ebbf2b2f5c75799c4e8b1b0c68b2d34e.tar.bz2
samba-c885ae01ebbf2b2f5c75799c4e8b1b0c68b2d34e.zip
Remove current_user reference from printfsp.c
(This used to be commit 510f45d01a19ce1c226755ac42a328241098b2e0)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printfsp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/printing/printfsp.c b/source3/printing/printfsp.c
index 4a2b26d2cd..c6749226fd 100644
--- a/source3/printing/printfsp.c
+++ b/source3/printing/printfsp.c
@@ -20,15 +20,13 @@
#include "includes.h"
-extern struct current_user current_user;
-
/***************************************************************************
open a print file and setup a fsp for it. This is a wrapper around
print_job_start().
***************************************************************************/
NTSTATUS print_fsp_open(connection_struct *conn, const char *fname,
- files_struct **result)
+ uint16_t current_vuid, files_struct **result)
{
int jobid;
SMB_STRUCT_STAT sbuf;
@@ -70,7 +68,7 @@ NTSTATUS print_fsp_open(connection_struct *conn, const char *fname,
/* setup a full fsp */
fsp->fh->fd = print_job_fd(lp_const_servicename(SNUM(conn)),jobid);
GetTimeOfDay(&fsp->open_time);
- fsp->vuid = current_user.vuid;
+ fsp->vuid = current_vuid;
fsp->fh->pos = -1;
fsp->can_lock = True;
fsp->can_read = False;