From 290dafda3b24027e18ae83dab05e386597be81a7 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 10 Dec 2015 17:14:56 -0700 Subject: [PATCH] Add BASHOPTS to initial_badenv_table[]; from Stephane Chazelas --- plugins/sudoers/env.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c index de7283499..a50ac8132 100644 --- a/plugins/sudoers/env.c +++ b/plugins/sudoers/env.c @@ -145,7 +145,8 @@ static const char *initial_badenv_table[] = { "BASH_ENV", /* bash, file to source before script runs */ "PS4", /* bash, prefix for lines in xtrace mode */ "GLOBIGNORE", /* bash, globbing patterns to ignore */ - "SHELLOPTS", /* bash, extra command line options */ + "BASHOPTS", /* bash, initial "shopt -s" options */ + "SHELLOPTS", /* bash, initial "set -o" options */ "JAVA_TOOL_OPTIONS", /* java, extra command line options */ "PERLIO_DEBUG ", /* perl, debugging output file */ "PERLLIB", /* perl, search path for modules/includes */ -- 2.40.0