diff options
author | Jeremy Allison <jra@samba.org> | 2000-07-06 23:31:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-07-06 23:31:46 +0000 |
commit | 89eafd3ceffc7b4965133f6ddc059a134eaffb61 (patch) | |
tree | f1eb5a86f9e98578128e7adbe54a74fe21ce7aba /source3/printing | |
parent | 7e7d0598c61424210ad98d22aa575d285a5bc529 (diff) | |
download | samba-89eafd3ceffc7b4965133f6ddc059a134eaffb61.tar.gz samba-89eafd3ceffc7b4965133f6ddc059a134eaffb61.tar.bz2 samba-89eafd3ceffc7b4965133f6ddc059a134eaffb61.zip |
printing/nt_printing.c: (From JF) use the driver name - already given to us.
printing/printing.c: priority needs to be 1 not zero (found by checked build).
rpc_server/srv_spoolss_nt.c: Log invalid handle access, also print out if this is a different
pid handle. This will help track down client access after a connection
is closed.
Jeremy.
(This used to be commit 4ff949228c40b6abb2008df8db985562ac2895d2)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 5 | ||||
-rw-r--r-- | source3/printing/printing.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index e666c1d6a7..e3af34053b 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -370,13 +370,10 @@ static uint32 add_a_printer_driver_6(NT_PRINTER_DRIVER_INFO_LEVEL_6 *driver) static uint32 get_a_printer_driver_3_default(NT_PRINTER_DRIVER_INFO_LEVEL_3 **info_ptr, fstring in_prt, fstring in_arch) { NT_PRINTER_DRIVER_INFO_LEVEL_3 info; - int snum; ZERO_STRUCT(info); - snum = lp_servicenumber(in_prt); - - fstrcpy(info.name, lp_printerdriver(snum)); + fstrcpy(info.name, in_prt); fstrcpy(info.defaultdatatype, "RAW"); fstrcpy(info.driverpath, ""); diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 80d1884aea..9a2994856d 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -785,7 +785,7 @@ static int traverse_fn_queue(TDB_CONTEXT *t, TDB_DATA key, TDB_DATA data, void * ts->queue[i].job = jobid; ts->queue[i].size = pjob.size; ts->queue[i].status = pjob.status; - ts->queue[i].priority = 0; + ts->queue[i].priority = 1; ts->queue[i].time = pjob.starttime; fstrcpy(ts->queue[i].user, pjob.user); fstrcpy(ts->queue[i].file, pjob.jobname); |