svn commit: samba r19420 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_23/source/nsswitch

jerry at samba.org jerry at samba.org
Thu Oct 19 22:41:11 GMT 2006


Author: jerry
Date: 2006-10-19 22:41:11 +0000 (Thu, 19 Oct 2006)
New Revision: 19420

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

Log:
Remove strequal and use strcmp() instead.  Meant to 
make the change before theprevious commit.


Modified:
   branches/SAMBA_3_0/source/nsswitch/wb_common.c
   branches/SAMBA_3_0_23/source/nsswitch/wb_common.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/wb_common.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/wb_common.c	2006-10-19 22:34:58 UTC (rev 19419)
+++ branches/SAMBA_3_0/source/nsswitch/wb_common.c	2006-10-19 22:41:11 UTC (rev 19420)
@@ -518,6 +518,18 @@
 	return result1 + result2;
 }
 
+BOOL winbind_env_set( void )
+{
+	char *env;
+	
+	if ((env=getenv(WINBINDD_DONT_ENV)) != NULL) {
+		if(strcmp(env, "1") == 0) {
+			return True;
+		}
+	}
+	return False;
+}
+
 /* 
  * send simple types of requests 
  */
@@ -628,14 +640,3 @@
 	return putenv(s) != -1;
 }
 
-BOOL winbind_env_set( void )
-{
-	char *env;
-	
-	if ((env=getenv(WINBINDD_DONT_ENV)) != NULL) {
-		if(strequal(env, "1")) {
-			return True;
-		}
-	}
-	return False;
-}

Modified: branches/SAMBA_3_0_23/source/nsswitch/wb_common.c
===================================================================
--- branches/SAMBA_3_0_23/source/nsswitch/wb_common.c	2006-10-19 22:34:58 UTC (rev 19419)
+++ branches/SAMBA_3_0_23/source/nsswitch/wb_common.c	2006-10-19 22:41:11 UTC (rev 19420)
@@ -518,6 +518,18 @@
 	return result1 + result2;
 }
 
+BOOL winbind_env_set( void )
+{
+	char *env;
+	
+	if ((env=getenv(WINBINDD_DONT_ENV)) != NULL) {
+		if(strcmp(env, "1") == 0) {
+			return True;
+		}
+	}
+	return False;
+}
+
 /* 
  * send simple types of requests 
  */
@@ -628,14 +640,3 @@
 	return putenv(s) != -1;
 }
 
-BOOL winbind_env_set( void )
-{
-	char *env;
-	
-	if ((env=getenv(WINBINDD_DONT_ENV)) != NULL) {
-		if(strequal(env, "1")) {
-			return True;
-		}
-	}
-	return False;
-}



More information about the samba-cvs mailing list