]> git.armaanb.net Git - opendoas.git/commitdiff
sf points out sudo doesn't allow SHELL in children
authorTed Unangst <tedu@openbsd.org>
Mon, 20 Jul 2015 01:04:37 +0000 (01:04 +0000)
committerTed Unangst <tedu@openbsd.org>
Mon, 20 Jul 2015 01:04:37 +0000 (01:04 +0000)
doas.c

diff --git a/doas.c b/doas.c
index b07059c84fe6f383906bc89962e98689870d8fcc..a712bc3799970a2f6096d82ac16ed9ef1c3fd1ec 100644 (file)
--- 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
        };