FreeBSD Bugzilla – Attachment 147678 Details for
Bug 193932
Add an option to disable the parsing of functions from environment variables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add an option to disable the parsing of functions from environment variables
bash-noenvfunc.patch (text/plain), 1.78 KB, created by
eric
on 2014-09-25 18:47:47 UTC
(
hide
)
Description:
Add an option to disable the parsing of functions from environment variables
Filename:
MIME Type:
Creator:
eric
Created:
2014-09-25 18:47:47 UTC
Size:
1.78 KB
patch
obsolete
>--- shells/bash/Makefile.orig 2014-09-25 14:29:35.356597290 -0400 >+++ shells/bash/Makefile 2014-09-25 14:37:31.299564652 -0400 >@@ -4,7 +4,7 @@ > PORTNAME= bash > PATCHLEVEL= 25 > PORTVERSION= 4.3.${PATCHLEVEL:S/^0//g} >-PORTREVISION?= 1 >+PORTREVISION?= 2 > CATEGORIES= shells > MASTER_SITES= GNU > MASTER_SITE_SUBDIR= ${PORTNAME} >@@ -24,11 +24,12 @@ > > LICENSE= GPLv3 > >-OPTIONS_DEFINE= IMPLICITCD COLONBREAKSWORDS HELP NLS STATIC SYSLOG DOCS >+OPTIONS_DEFINE= IMPLICITCD COLONBREAKSWORDS HELP NLS STATIC SYSLOG DOCS NOENVFUNC > OPTIONS_DEFAULT= IMPLICITCD COLONBREAKSWORDS HELP NLS > IMPLICITCD_DESC= Use directory name alone to cd into it > COLONBREAKSWORDS_DESC= Colons break words > HELP_DESC= Enable builtin help >+NOENVFUNC_DESC= Do not parse functions from env vars > > USES= bison cpe makeinfo > OPTIONS_SUB= yes >@@ -36,6 +37,7 @@ > > IMPLICITCD_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-implicitcd > COLONBREAKSWORDS_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-colonbreakswords >+NOENVFUNC_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-noenvfunc > > HELP_CONFIGURE_ENABLE= help-builtin > NLS_CONFIGURE_ENABLE= nls >--- shells/bash/files/extrapatch-noenvfunc.orig 2014-09-25 14:40:44.648551250 -0400 >+++ shells/bash/files/extrapatch-noenvfunc 2014-09-25 14:35:40.182571949 -0400 >@@ -0,0 +1,11 @@ >+--- variables.c.orig 2014-09-25 14:35:17.738573512 -0400 >++++ variables.c 2014-09-25 14:35:26.723573202 -0400 >+@@ -349,7 +349,7 @@ >+ >+ /* If exported function, define it now. Don't import functions from >+ the environment in privileged mode. */ >+- if (privmode == 0 && read_but_dont_execute == 0 && STREQN ("() {", string, 4)) >++ if (0 && privmode == 0 && read_but_dont_execute == 0 && STREQN ("() {", string, 4)) >+ { >+ string_length = strlen (string); >+ temp_string = (char *)xmalloc (3 + string_length + char_index);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193932
: 147678