Unset PAM environment variables if not set
This commit is contained in:
parent
cc5e43922e
commit
b2eb9f8a83
@ -1156,6 +1156,8 @@ start_stop_daemon(int argc, char **argv)
|
||||
/* Don't add strings unless they set a var */
|
||||
if (strchr(*pamenv, '='))
|
||||
putenv(xstrdup(*pamenv));
|
||||
else
|
||||
unsetenv(*pamenv);
|
||||
pamenv++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user