diff options
author | jperkin <jperkin@pkgsrc.org> | 2021-07-21 10:24:16 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2021-07-21 10:24:16 +0000 |
commit | 4af3928b08871665ef5d8e754103bb634c08be0b (patch) | |
tree | c93176bd95847d16b0e2bfb22366221dfb36c140 /shells/bash/patches/patch-variables.c | |
parent | ae7506e96f5fe4cb25c6e848c39caadd8608b975 (diff) | |
download | pkgsrc-4af3928b08871665ef5d8e754103bb634c08be0b.tar.gz |
bash: Remove attempted workaround for Shellshock.
Releases of bash since then have correctly resolved the issue, and this
undocumented and non-standard option just results in software being broken out
of the box with a configuration different to other OS. Bump PKGREVISION.
Diffstat (limited to 'shells/bash/patches/patch-variables.c')
-rw-r--r-- | shells/bash/patches/patch-variables.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/shells/bash/patches/patch-variables.c b/shells/bash/patches/patch-variables.c deleted file mode 100644 index 62f33f9587c..00000000000 --- a/shells/bash/patches/patch-variables.c +++ /dev/null @@ -1,23 +0,0 @@ -$NetBSD: patch-variables.c,v 1.6 2021/01/04 10:39:23 wiz Exp $ - -Only read functions from environment if flag is set. - ---- variables.c.orig 2020-09-07 20:41:51.000000000 +0000 -+++ variables.c -@@ -97,6 +97,7 @@ - #define FV_NODYNAMIC 0x04 - - extern char **environ; -+extern int import_functions; - - /* Variables used here and defined in other files. */ - extern time_t shell_start_time; -@@ -377,7 +378,7 @@ initialize_shell_variables (env, privmod - #if defined (FUNCTION_IMPORT) - /* If exported function, define it now. Don't import functions from - the environment in privileged mode. */ -- if (privmode == 0 && read_but_dont_execute == 0 && -+ if (import_functions && privmode == 0 && read_but_dont_execute == 0 && - STREQN (BASHFUNC_PREFIX, name, BASHFUNC_PREFLEN) && - STREQ (BASHFUNC_SUFFIX, name + char_index - BASHFUNC_SUFFLEN) && - STREQN ("() {", string, 4)) |