diff options
author | Gerald Carter <jerry@samba.org> | 2006-10-19 22:41:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:34 -0500 |
commit | 80d40172efa3b5c051cc4a40d5599f73e6481737 (patch) | |
tree | e388c623ac9593e6592e9520c87c7117da64e0a5 /source3/nsswitch | |
parent | 2145eff91d5b7e16ee486b410181f4b849a3fb9e (diff) | |
download | samba-80d40172efa3b5c051cc4a40d5599f73e6481737.tar.gz samba-80d40172efa3b5c051cc4a40d5599f73e6481737.tar.bz2 samba-80d40172efa3b5c051cc4a40d5599f73e6481737.zip |
r19420: Remove strequal and use strcmp() instead. Meant to
make the change before theprevious commit.
(This used to be commit 815388c4c8be1274359679077a120fec4cc39b0f)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wb_common.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c index 05238f16fb..19ee72f9e4 100644 --- a/source3/nsswitch/wb_common.c +++ b/source3/nsswitch/wb_common.c @@ -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; -} |