summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-19 11:33:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-19 11:33:35 +0000
commit1f1125577c000ab72754af00cd83c57fadcc85f1 (patch)
tree1ff613b18e432bb53dd8d93276ecbd91f5d1b85f /source3/include
parent231f7375590110046ed67b7b337ac2e12d257736 (diff)
downloadsamba-1f1125577c000ab72754af00cd83c57fadcc85f1.tar.gz
samba-1f1125577c000ab72754af00cd83c57fadcc85f1.tar.bz2
samba-1f1125577c000ab72754af00cd83c57fadcc85f1.zip
Move to a in-memory ccache for winbind, and replace setenv() properly.
(According to the manpages, you cannot put a stack variable into putenv()). Yes, this leaks memory. Andrew Bartlett (This used to be commit 50bced1e26434ecc7474964062746e2831e5f433)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index bb78ae0780..731d94996c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -966,6 +966,10 @@ size_t strnlen(const char *s, size_t n);
unsigned long strtoul(const char *nptr, char **endptr, int base);
#endif
+#ifndef HAVE_SETENV
+int setenv(const char *name, const char *value, int overwrite);
+#endif
+
#if (defined(USE_SETRESUID) && !defined(HAVE_SETRESUID_DECL))
/* stupid glibc */
int setresuid(uid_t ruid, uid_t euid, uid_t suid);