make roken not provide environ, its really something that doesnt work in a multinamespace enviroments (read mac os x)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23943 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -69,6 +69,11 @@ add_env(const char *var, const char *value)
|
||||
extend_env(str);
|
||||
}
|
||||
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
copy_env(void)
|
||||
{
|
||||
|
@@ -64,6 +64,10 @@ RCSID("$Id$");
|
||||
|
||||
#include "supaths.h"
|
||||
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
int kerberos_flag = 1;
|
||||
int csh_f_flag;
|
||||
int full_login;
|
||||
@@ -506,7 +510,7 @@ main(int argc, char **argv)
|
||||
if (ok == 5)
|
||||
krb5_start_session();
|
||||
#endif
|
||||
execv(shell, args);
|
||||
execve(shell, args, environ);
|
||||
}
|
||||
|
||||
exit(1);
|
||||
|
@@ -1553,8 +1553,8 @@ env_find(unsigned char *var)
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
#ifdef IRIX4
|
||||
#define environ _environ
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
void
|
||||
|
@@ -1186,7 +1186,9 @@ startslave(const char *host, const char *utmp_host,
|
||||
}
|
||||
|
||||
char *envinit[3];
|
||||
#if !HAVE_DECL_ENVIRON
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
void
|
||||
init_env(void)
|
||||
|
Reference in New Issue
Block a user