diff options
author | Jeremy Allison <jra@samba.org> | 2002-07-17 19:12:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-07-17 19:12:17 +0000 |
commit | 29426b4a50275e24020ae67898cd7d156a341a7f (patch) | |
tree | 60a8ff0974faa1341be98df827146a8ab670320e /source3/printing/printfsp.c | |
parent | cc9511af8c3bb1b805ba34049e7861e226ed5f7d (diff) | |
download | samba-29426b4a50275e24020ae67898cd7d156a341a7f.tar.gz samba-29426b4a50275e24020ae67898cd7d156a341a7f.tar.xz samba-29426b4a50275e24020ae67898cd7d156a341a7f.zip |
Gone back to explicit queue number passing as snum - removed encoding of
queueid in job number. This means we must have an internal tdb to store
mapping from 16 bit RAP jobid's to 32 bit RPC jobids.
Jeremy.
(This used to be commit 4ff64f69706cc94d5dba7762754d00790c476963)
Diffstat (limited to 'source3/printing/printfsp.c')
-rw-r--r-- | source3/printing/printfsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/printfsp.c b/source3/printing/printfsp.c index 9f33d57ad52..ff50ac47c49 100644 --- a/source3/printing/printfsp.c +++ b/source3/printing/printfsp.c @@ -54,7 +54,7 @@ files_struct *print_fsp_open(connection_struct *conn, char *fname) /* setup a full fsp */ fsp->print_jobid = jobid; - fsp->fd = print_job_fd(jobid); + fsp->fd = print_job_fd(SNUM(conn),jobid); GetTimeOfDay(&fsp->open_time); fsp->vuid = current_user.vuid; fsp->size = 0; @@ -70,7 +70,7 @@ files_struct *print_fsp_open(connection_struct *conn, char *fname) fsp->is_directory = False; fsp->directory_delete_on_close = False; fsp->conn = conn; - string_set(&fsp->fsp_name,print_job_fname(jobid)); + string_set(&fsp->fsp_name,print_job_fname(SNUM(conn),jobid)); fsp->wbmpx_ptr = NULL; fsp->wcp = NULL; conn->vfs_ops.fstat(fsp,fsp->fd, &sbuf); @@ -96,7 +96,7 @@ void print_fsp_end(files_struct *fsp, BOOL normal_close) sys_ftruncate(fsp->fd, 0); } - print_job_end(fsp->print_jobid, normal_close); + print_job_end(SNUM(fsp->conn),fsp->print_jobid, normal_close); if (fsp->fsp_name) { string_free(&fsp->fsp_name); |