Add support for setenv entries in login.conf. We can't use LOGIN_SETENV

since the plugin sets up the envp the command is executed with.
Also regen the Makefile.in files while here.  Fixes bug #527
This commit is contained in:
Todd C. Miller
2011-12-05 10:43:44 -05:00
parent 38a4990e4a
commit 9f0abb4692
13 changed files with 550 additions and 267 deletions

View File

@@ -98,7 +98,6 @@ struct environment {
/*
* Prototypes
*/
static void sudo_setenv(const char *, const char *, int);
static void sudo_putenv(char *, int, int);
/*
@@ -240,7 +239,7 @@ env_get(void)
* (not environ) and it always overwrites. The dupcheck param determines
* whether we need to verify that the variable is not already set.
*/
static void
void
sudo_setenv(const char *var, const char *val, int dupcheck)
{
char *estring;