summaryrefslogtreecommitdiff
path: root/source4/nsswitch
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-07 11:48:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:51 -0500
commit2cd4e0264ff2a852c657049ac27b13d8d5d27fc3 (patch)
treedad4485c56410ef73b9197549a1ea0021daaf90e /source4/nsswitch
parent0a05a6fea0c3760509a6aaef24d5ecb27c30111c (diff)
downloadsamba-2cd4e0264ff2a852c657049ac27b13d8d5d27fc3.tar.gz
samba-2cd4e0264ff2a852c657049ac27b13d8d5d27fc3.tar.bz2
samba-2cd4e0264ff2a852c657049ac27b13d8d5d27fc3.zip
r18218: setenv() is guaranteed by libreplace
also, putenv() cannot take a const char * (This used to be commit 03c9f9dc3668d43983e0e6d7b87d9d3bbf8869f0)
Diffstat (limited to 'source4/nsswitch')
-rw-r--r--source4/nsswitch/wb_common.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source4/nsswitch/wb_common.c b/source4/nsswitch/wb_common.c
index f829b55f2a..e8c317b598 100644
--- a/source4/nsswitch/wb_common.c
+++ b/source4/nsswitch/wb_common.c
@@ -600,27 +600,14 @@ NSS_STATUS winbindd_request(int req_type,
enable them
************************************************************************/
-/* Use putenv() instead of setenv() in these functions as not all
- environments have the latter. */
-
BOOL winbind_off( void )
{
-#if HAVE_SETENV
setenv(WINBINDD_DONT_ENV, "1", 1);
return True;
-#else
- static const char *s = WINBINDD_DONT_ENV "=1";
- return putenv(s) != -1;
-#endif
}
BOOL winbind_on( void )
{
-#if HAVE_SETENV
setenv(WINBINDD_DONT_ENV, "0", 1);
return True;
-#else
- static const char *s = WINBINDD_DONT_ENV "=0";
- return putenv(s) != -1;
-#endif
}