]> granicus.if.org Git - sudo/commitdiff
Apple uses a different variant of the BASH_FUNC prefix for bash
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Oct 2014 19:55:36 +0000 (13:55 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Oct 2014 19:55:36 +0000 (13:55 -0600)
functions.

plugins/sudoers/env.c

index 718398b3892485106b86601c41813db512557c46..17b02da3017a5c4addf953d1d406d4761fb56a22 100644 (file)
@@ -171,6 +171,7 @@ static const char *initial_badenv_table[] = {
     "RUBYLIB",                 /* ruby, library load path */
     "RUBYOPT",                 /* ruby, extra command line options */
     "BASH_FUNC_*",             /* new-style bash functions */
+    "__BASH_FUNC<*",           /* new-style bash functions (Apple) */
     NULL
 };