In reviewing the recent printing-3-0-10_v2 patch, I think I have found an omitted 'release_print_db'. The following patch corrects this. Regards, Jerome Borsboom --- samba-3.0.10/source/printing/printing.c 2005-01-10 15:07:27.060999122 +0100 +++ samba-3.0.10.new/source/printing/printing.c 2005-01-10 15:07:36.784464292 +0100 @@ -1077,6 +1077,7 @@ if ( !print_cache_expired(sharename, False) ) { DEBUG(5,("print_queue_update_internal: print cache for %s is still ok\n", sharename)); + release_print_db( pdb ); return; }
On Monday 10 January 2005 09:15, Jerome Borsboom wrote:> In reviewing the recent printing-3-0-10_v2 patch, I think I have > found an omitted 'release_print_db'. The following patch > corrects this. > > Regards, > > Jerome Borsboom > > --- samba-3.0.10/source/printing/printing.c 2005-01-10 15:07:27.060999122 > +0100 +++ samba-3.0.10.new/source/printing/printing.c 2005-01-10 > 15:07:36.784464292 +0100 @@ -1077,6 +1077,7 @@ > > if ( !print_cache_expired(sharename, False) ) { > DEBUG(5,("print_queue_update_internal: print cache for %s is still > ok\n", sharename)); + release_print_db( pdb ); > return; > }I tried adding this to printing.c in 3.0.11pre1 and it does not compile: Compiling printing/printing.c printing/printing.c: In function `print_cache_expired': printing/printing.c:1038: warning: passing arg 3 of `tdb_fetch_uint32' from incompatible pointer type printing/printing.c: In function `print_queue_update_internal': printing/printing.c:2713: error: parse error at end of input printing/printing.c:30: warning: `remove_from_jobs_changed' used but never defined make: *** [printing/printing.o] Error 1 Just thought you would like to know, Misty
On Mon, Jan 10, 2005 at 03:15:56PM +0100, Jerome Borsboom wrote:> In reviewing the recent printing-3-0-10_v2 patch, I think I have > found an omitted 'release_print_db'. The following patch > corrects this. > > Regards, > > Jerome Borsboom > > --- samba-3.0.10/source/printing/printing.c 2005-01-10 15:07:27.060999122 +0100 > +++ samba-3.0.10.new/source/printing/printing.c 2005-01-10 15:07:36.784464292 +0100 > @@ -1077,6 +1077,7 @@ > > if ( !print_cache_expired(sharename, False) ) { > DEBUG(5,("print_queue_update_internal: print cache for %s is still ok\n", sharename)); > + release_print_db( pdb ); > return; > }Applied - thanks ! Jeremy.
Apparently Analagous Threads
- new printing patch for 3.0.10 may fix the 'failure to remove print jobs from queue list display'
- duplicate domains in browse list
- Cannot exec program from network drive after 10 minutes (II)
- password change, domain not available
- Samba Process stops while trying to print to a CUPS