aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-05-07 12:20:59 +0100
committerRoy Marples <roy@marples.name>2009-05-07 12:20:59 +0100
commitb2eb9f8a83b1a04dc19b63767b6d95ae022343ab (patch)
tree0864c46e932ccdb0a1eca088c9a7fea0b96e7ca9 /src/rc
parentcc5e43922e0686c6c2bea661e1f2d20cfec887fd (diff)
Unset PAM environment variables if not set
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/start-stop-daemon.c2
1 files changed, 2 insertions, 0 deletions
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++;
}
}