summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-07-29 20:11:18 +0000
committerHerb Lewis <herb@samba.org>2003-07-29 20:11:18 +0000
commitcec5bf5f99ca98b0f5ee84636fc18f0cb3079683 (patch)
tree0f9ff59c94942f972049e132554d28eaa363933d /source/lib/replace.c
parente2742e0d897a35820a7d8f184292c32a4c3952e3 (diff)
downloadsamba-cec5bf5f99ca98b0f5ee84636fc18f0cb3079683.tar.gz
samba-cec5bf5f99ca98b0f5ee84636fc18f0cb3079683.tar.xz
samba-cec5bf5f99ca98b0f5ee84636fc18f0cb3079683.zip
split replace into replace and replace1 to allow setenv to be used by
nsswitch modules. Add required libraries to get rid of undefined functions for libns_winbind.so and libns_wins.so
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index 0c62ec9bfa5..cd48b8d160f 100644
--- a/source/lib/replace.c
+++ b/source/lib/replace.c
@@ -447,21 +447,3 @@ char *rep_inet_ntoa(struct in_addr ip)
return t;
}
#endif
-
-#ifndef HAVE_SETENV
- int setenv(const char *name, const char *value, int overwrite)
-{
- char *p = NULL;
- int ret = -1;
-
- asprintf(&p, "%s=%s", name, value);
-
- if (overwrite || getenv(name)) {
- if (p) ret = putenv(p);
- } else {
- ret = 0;
- }
-
- return ret;
-}
-#endif