svn commit: samba r23552 - in branches: SAMBA_3_0/source/param SAMBA_3_0_26/source/param

obnox at samba.org obnox at samba.org
Wed Jun 20 08:47:14 GMT 2007


Author: obnox
Date: 2007-06-20 08:47:13 +0000 (Wed, 20 Jun 2007)
New Revision: 23552

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23552

Log:
Use proper comparison function an fix logic.

Michael


Modified:
   branches/SAMBA_3_0/source/param/loadparm.c
   branches/SAMBA_3_0_26/source/param/loadparm.c


Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c	2007-06-20 04:15:39 UTC (rev 23551)
+++ branches/SAMBA_3_0/source/param/loadparm.c	2007-06-20 08:47:13 UTC (rev 23552)
@@ -3163,7 +3163,7 @@
 				  &type,
 				  &size,
 				  &data_p);
-		if (strcmp(valname,"include")) {
+		if (strwicmp(valname,"include") == 0) {
 			DEBUG(10, ("process_registry_globals: Ignoring "
 				   "parameter 'include' in registry.\n"));
 			continue;

Modified: branches/SAMBA_3_0_26/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0_26/source/param/loadparm.c	2007-06-20 04:15:39 UTC (rev 23551)
+++ branches/SAMBA_3_0_26/source/param/loadparm.c	2007-06-20 08:47:13 UTC (rev 23552)
@@ -3164,7 +3164,7 @@
 				  &type,
 				  &size,
 				  &data_p);
-		if (strcmp(valname,"include")) {
+		if (strwicmp(valname,"include") == 0) {
 			DEBUG(10, ("process_registry_globals: Ignoring "
 				   "parameter 'include' in registry.\n"));
 			continue;



More information about the samba-cvs mailing list