From b2eb9f8a83b1a04dc19b63767b6d95ae022343ab Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 7 May 2009 12:20:59 +0100 Subject: Unset PAM environment variables if not set --- src/rc/start-stop-daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index e2c95de8..bede39bb 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -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++; } } -- cgit v1.2.3