r19420: Remove strequal and use strcmp() instead. Meant to
authorGerald Carter <jerry@samba.org>
Thu, 19 Oct 2006 22:41:11 +0000 (22:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:34 +0000 (12:15 -0500)
make the change before theprevious commit.
(This used to be commit 815388c4c8be1274359679077a120fec4cc39b0f)

source3/nsswitch/wb_common.c

index 05238f16fbd3d89ab8299219d54eaa37a693ba99..19ee72f9e42990e3693438c546f6211da5806b50 100644 (file)
@@ -518,6 +518,18 @@ int read_reply(struct winbindd_response *response)
        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 @@ BOOL winbind_on( void )
        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;
-}