svn commit: samba r2067 - branches/SAMBA_3_0/source/printing trunk/source/printing

gd at samba.org gd at samba.org
Wed Aug 25 12:31:00 GMT 2004


Author: gd
Date: 2004-08-25 12:31:00 +0000 (Wed, 25 Aug 2004)
New Revision: 2067

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2067&nolog=1

Log:
Prevent nameless $LIBDIR/printing/.tdb from beeing created. 

I've seen these on several sites now without knowing how they could get
created.

Guenther

Modified:
   branches/SAMBA_3_0/source/printing/printing_db.c
   trunk/source/printing/printing_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/printing/printing_db.c
===================================================================
--- branches/SAMBA_3_0/source/printing/printing_db.c	2004-08-25 12:14:06 UTC (rev 2066)
+++ branches/SAMBA_3_0/source/printing/printing_db.c	2004-08-25 12:31:00 UTC (rev 2067)
@@ -37,6 +37,9 @@
 	pstring printdb_path;
 	BOOL done_become_root = False;
 
+	if (printername == NULL)
+		return NULL;
+
 	for (p = print_db_head, last_entry = print_db_head; p; p = p->next) {
 		/* Ensure the list terminates... JRA. */
 		SMB_ASSERT(p->next != print_db_head);

Modified: trunk/source/printing/printing_db.c
===================================================================
--- trunk/source/printing/printing_db.c	2004-08-25 12:14:06 UTC (rev 2066)
+++ trunk/source/printing/printing_db.c	2004-08-25 12:31:00 UTC (rev 2067)
@@ -37,6 +37,9 @@
 	pstring printdb_path;
 	BOOL done_become_root = False;
 
+	if (printername == NULL)
+		return NULL;
+
 	for (p = print_db_head, last_entry = print_db_head; p; p = p->next) {
 		/* Ensure the list terminates... JRA. */
 		SMB_ASSERT(p->next != print_db_head);



More information about the samba-cvs mailing list