summaryrefslogtreecommitdiff
path: root/source3/printing/nt_printing.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-07-06 23:31:46 +0000
committerJeremy Allison <jra@samba.org>2000-07-06 23:31:46 +0000
commit89eafd3ceffc7b4965133f6ddc059a134eaffb61 (patch)
treef1eb5a86f9e98578128e7adbe54a74fe21ce7aba /source3/printing/nt_printing.c
parent7e7d0598c61424210ad98d22aa575d285a5bc529 (diff)
downloadsamba-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/nt_printing.c')
-rw-r--r--source3/printing/nt_printing.c5
1 files changed, 1 insertions, 4 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, "");