aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@openbsd.org>2015-07-20 01:04:37 +0000
committerTed Unangst <tedu@openbsd.org>2015-07-20 01:04:37 +0000
commit8fcb0f4187e02ff1c2cd4fcf2b92cb79c6251a54 (patch)
tree9f16f304d7678a9c8716f1b9f4f8eb5b474cfd53
parente634f2b4be7a088bede88873ca0b51e5995d47b0 (diff)
downloadopendoas-8fcb0f4187e02ff1c2cd4fcf2b92cb79c6251a54.tar.gz
sf points out sudo doesn't allow SHELL in children
-rw-r--r--doas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doas.c b/doas.c
index b07059c..a712bc3 100644
--- a/doas.c
+++ b/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.12 2015/07/20 00:57:53 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.13 2015/07/20 01:00:48 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -188,7 +188,7 @@ static char **
copyenv(const char **oldenvp, struct rule *rule)
{
const char *safeset[] = {
- "DISPLAY", "HOME", "LOGNAME", "MAIL", "SHELL",
+ "DISPLAY", "HOME", "LOGNAME", "MAIL",
"PATH", "TERM", "USER", "USERNAME",
NULL
};