diff options
author | Gerald Carter <jerry@samba.org> | 2003-02-25 20:53:53 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-02-25 20:53:53 +0000 |
commit | 31272d3b6bb9ec62fd666301c7adfa0c1720a99b (patch) | |
tree | c99c3a908739a1dd7bd66ff6b831a3ee1d8715f0 /source/smbd/lanman.c | |
parent | 9634b1fba059228d436198629a5c7cf01fb6736c (diff) | |
download | samba-31272d3b6bb9ec62fd666301c7adfa0c1720a99b.tar.gz samba-31272d3b6bb9ec62fd666301c7adfa0c1720a99b.tar.xz samba-31272d3b6bb9ec62fd666301c7adfa0c1720a99b.zip |
Progress on CR 601
cache the printer_info_2 with the open printer handle.
cache is invalidated on a mod_a_printer() call **on that smbd**.
Yes, this means that the window for admins to step on each other
from different clients just got larger, but since handles a generally
short lived this is probably ok.
Diffstat (limited to 'source/smbd/lanman.c')
-rw-r--r-- | source/smbd/lanman.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c index 25f390be55e..98857c6d320 100644 --- a/source/smbd/lanman.c +++ b/source/smbd/lanman.c @@ -500,7 +500,7 @@ static BOOL get_driver_name(int snum, pstring drivername) NT_PRINTER_INFO_LEVEL *info = NULL; BOOL in_tdb = False; - get_a_printer (&info, 2, lp_servicename(snum)); + get_a_printer (NULL, &info, 2, lp_servicename(snum)); if (info != NULL) { pstrcpy( drivername, info->info_2->drivername); in_tdb = True; @@ -522,7 +522,7 @@ static void fill_printq_info_52(connection_struct *conn, int snum, NT_PRINTER_DRIVER_INFO_LEVEL driver; NT_PRINTER_INFO_LEVEL *printer = NULL; - if ( !W_ERROR_IS_OK(get_a_printer( &printer, 2, lp_servicename(snum))) ) { + if ( !W_ERROR_IS_OK(get_a_printer( NULL, &printer, 2, lp_servicename(snum))) ) { DEBUG(3,("fill_printq_info_52: Failed to lookup printer [%s]\n", lp_servicename(snum))); goto err; @@ -679,7 +679,7 @@ static int get_printerdrivernumber(int snum) NT_PRINTER_DRIVER_INFO_LEVEL driver; NT_PRINTER_INFO_LEVEL *printer = NULL; - if ( !W_ERROR_IS_OK(get_a_printer( &printer, 2, lp_servicename(snum))) ) { + if ( !W_ERROR_IS_OK(get_a_printer( NULL, &printer, 2, lp_servicename(snum))) ) { DEBUG(3,("get_printerdrivernumber: Failed to lookup printer [%s]\n", lp_servicename(snum))); goto done; |