strcasecmp stricmp vsyslog writev pread \
setrlimit setproctitle seteuid setreuid setegid setresgid \
strtoull strtouq setpriority quotactl getmntent kqueue kevent \
- backtrace_symbols walkcontext dirfd \
+ backtrace_symbols walkcontext dirfd clearenv \
malloc_usable_size)
dnl * I/O loop function
void env_clean(void)
{
+#ifdef HAVE_CLEARENV
+ if (clearenv() < 0)
+ i_fatal("clearenv() failed");
+#else
extern char **environ;
/* Try to clear the environment. It should always be non-NULL, but
if (environ != NULL)
*environ = NULL;
+#endif
/* don't clear the env_pool, otherwise the environment would get
corrupted if we failed to clear it. */
}