Commit Graph

57 Commits

Author SHA1 Message Date
Bryan Drewery e603aaff02 - Update to patchlevel 28 which fixes issues that were mostly addressed
already in r369684.
2014-10-02 00:22:12 +00:00
Bryan Drewery 207cf37bd3 Add RedHat's patch for CVE-2014-7186, commonly known as "redir_stack" overflow,
which has not been shown to be as critical as "shellshock" currently.

Security:	CVE-2014-7186
2014-10-01 03:35:12 +00:00
Bryan Drewery 62f9f87a4d - Update to patchlevel 27 which changes how functions are exported.
This should eliminate the recent vulnerabilities, but keep the
  requirement for --import-functions/IMPORTFUNCTIONS option for now.
- Loosen the --import-functions requirement so it is not needed when running
  an interactive shell. It is already disallowed for privileged/setuid mode.
- Show an error on stderr when an imported function is ignored.
2014-09-28 16:47:00 +00:00
Bryan Drewery 92e9f2e7d5 Update to patchlevel 26. This is a NOP as r369261 already covered it. 2014-09-26 21:29:20 +00:00
Bryan Drewery 8f93c11473 Disable function importing from the environment by default. This can be
enabled by using --import-functions or enabling the IMPORTFUNCTIONS option.

This removes the risk of further parser bugs leading to code execution, as
well as the risk to setuid scripts and poorly written applications that
do not cleanse their environment [1][2].

Also note that there is an unofficial 4.3.26 floating around that has not yet
been officially released.  r369261 covers the change in 4.3.26.

See also:
  http://seclists.org/oss-sec/2014/q3/747 [1]
  http://seclists.org/oss-sec/2014/q3/746 [2]
  http://seclists.org/oss-sec/2014/q3/755 [3]

Obtained from:	NetBSD (based on) [3]
PR:		193932
Reviewed by:	Eric Vangyzen
With hat:	portmgr
2014-09-26 20:33:23 +00:00
Bryan Drewery 627de1b0d7 Fix CVE-2014-3659. The original fix in 25 was not enough.
Obtained from:	http://seclists.org/oss-sec/2014/q3/690 (bash developer)
Security:	CVE-2014-3659
2014-09-25 15:38:56 +00:00
Emanuel Haupt 03edf9b7fc - Reset maintainer of shells/bash, shells/bash-static
- Takeover maintainership
- Merge changes from shells/bash-devel this updates the port to 4.3
- Remove the now useless -devel ports
- Document change in ports/MOVED

Approved by:    portmgr (bapt)
2014-03-03 08:55:45 +00:00
David E. O'Brien 51881237b8 Update to Bash 4.2 patchlevel 37.
PR:		170283
Submitted by:	Bryan Drewery <bryan@shatow.net>
2012-08-03 18:56:44 +00:00
David E. O'Brien 82e5900cea Update to version 4.2 PL 20. 2012-01-12 22:32:28 +00:00
Emanuel Haupt 135815e4ab - Remove iconv dependency if WITHOUT_NLS is defined
- Bump PORTREVISION

PR:             149981
Submitted by:   Jeremy Chadwick <freebsd@jdc.parodius.com> (via ports)
Approved by:    obrien (maintainer-timeout; 14 days)
2010-09-09 13:24:39 +00:00
Emanuel Haupt a04231de18 - Fix statically linked version
- Bump PORTREVISION

Approved by:	portmgr (miwi)
2010-05-11 09:34:45 +00:00
David E. O'Brien 2f6ee01948 Update to 4.0 PL0. 2009-03-11 16:49:28 +00:00
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00
David E. O'Brien 392bd21eb6 Upgrade to 3.2. 2007-06-21 17:12:01 +00:00
Renato Botelho 96a33532bb - Update to 3.1.10
PR:		ports/91036
Submitted by:	Rainer Alves <rainer.alves@gmail.com>
Approved by:	maintainer timeout (54 days)
2006-02-21 15:29:59 +00:00
Oliver Eikemeier d8f7447a12 Fix `read -e' handling when PS1 is longer than the terminal width
<http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139306>

Obtained from:	Tim Waugh <twaugh@redhat.com>
2004-11-19 13:44:37 +00:00
Oliver Eikemeier 70f1c1f0b7 - update to patchlevel 16 (replacing FreeBSD subst.c patch)
- use system readline on -CURRENT [1]

Submitted by:	sf [1]
2004-11-11 12:04:21 +00:00
Oliver Eikemeier f0c4bac25e - update to patchlevel 15 2004-11-02 10:24:50 +00:00
Oliver Eikemeier 875ebd31e7 - better reflect `bash --version' in PORTVERSION
- new shopt colonbreakswords
- fix default PATH
2004-10-14 13:24:20 +00:00
Oliver Eikemeier 47f3195355 Fix process substitution on systems without fdescfs (FreeBSD 5.x, 6.x)
While I'm here, use the official patchset instead of the custom ones
and reflect the port revision in the version number.

Submitted by:	Reinhard Speyerer <rspmn@arcor.de>
Approved by:	portmgr (krion)
2004-10-09 10:16:33 +00:00
Oliver Eikemeier a55fe984d5 - add FAQ
- experimental shopt `implicitcd'
- fix `Tags out of Date' in texinfo pages
- fix line wrap bug in libreadline
- set LATEST_LINK to `bash', so that `pkg_add -r bash' works
2004-09-03 09:21:31 +00:00
Oliver Eikemeier 0ddba63255 add three fixes from bug-bash@:
- pipefail option
- broken array expansion
- segmentation fault in unset typeset array variable
2004-08-19 09:15:47 +00:00
Oliver Eikemeier 764c05e57a Fix nested brace vs. variable expansion 2004-08-10 19:32:19 +00:00
Oliver Eikemeier fa4d9be814 Fix segfault when accessing an unset array 2004-08-10 19:04:41 +00:00
Oliver Eikemeier f55e7a8694 Add bash3, The GNU Bourne-Again SHell version 3.00
http://cnswww.cns.cwru.edu/~chet/bash/NEWS
2004-07-30 22:01:13 +00:00
David E. O'Brien edd5ce97c3 Avoid a null pointer dereference, so 'xargs <<< ${EMTPY_VARIABLE}'
will not segfault and dump core.

Submitted by:	Robert Nagy <robert@openbsd.org>
2004-06-20 22:37:22 +00:00
David E. O'Brien 20f489073d Properly configure on FreeBSD/amd64. 2003-05-16 19:56:09 +00:00
David E. O'Brien a146f053ab Use offical vendor patches 1-4. 2002-09-13 00:43:09 +00:00
David E. O'Brien f71e7b3c60 Use the offical vendor patch for the directory space vs. slash command name
completion problem.

Submitted by:	Chet Ramey <chet@po.CWRU.Edu>
Bash PR:	http://mail.gnu.org/pipermail/bug-bash/2002-July/004789.html
2002-09-09 22:25:50 +00:00
David E. O'Brien ce9d222b68 "In certain cases, Bash appends a space instead of a slash to a directory name
relative to the current directory when performing command name completion.
This affects partial completion of intermediate directory names."  Fix this.

Bash PR:	http://mail.gnu.org/pipermail/bug-bash/2002-July/004789.html
Obtained from:	http://www.geocrawler.com/mail/msg.php3?msg_id=9514404&list=342
2002-09-09 01:19:52 +00:00
David E. O'Brien 00c6d9d8ea We lie about fully having ISO C90 Amd.1 restartable wide and multibyte
character manipulation functions.
2002-08-26 03:42:41 +00:00
David E. O'Brien dfa32123f5 Simply typing Shift-Enter in bash-2.05b causes it to enter some kind of
CPU-consuming loop. A kill -9 from another terminal is required to end it.

Submitted by:	Chet Ramey <chet@nike.ins.cwru.edu>
2002-08-06 07:22:41 +00:00
David E. O'Brien 421df473ba Update to version 2.05b.
PR:		41176
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2002-08-04 06:57:11 +00:00
David E. O'Brien a9b41500db Make FINGORE gain a brain. If NO_FORCE_FIGNORE is set, and a file in the
FIGNORE list is the only possible match, expand it.
2002-03-25 03:18:52 +00:00
Christian Weisgerber 452e627854 * Update to 2.05a.
* Split failglob patch into per-file patches.

Reviewed by:	obrien
2001-11-21 01:40:39 +00:00
David E. O'Brien 906c6edb8c Our `end' key defintion for TERM==cons25 seems to be different from others.
So make the same localization here that ache made in
src/contrib/libreadline/terminal.c rev 1.2.

Submitted by:	sobomax
2001-04-11 16:47:56 +00:00
David E. O'Brien 0facad47b5 Remove. Patch not needed any longer.
Submitted by:	sobomax
2001-04-10 10:50:49 +00:00
David E. O'Brien 51cbaf554a Update to version 2.05.
Submitted by:	sobomax
2001-04-10 10:47:53 +00:00
David E. O'Brien 7f8208f177 Fix a segmentation fault on the Alpha.
As shown with this script :

	m(){ if [ $1 -eq 1 ];then echo $2 $3;else m $(($1-1)) $2 $4 $3;m 1 $2 \
	$3 $4;m $(($1-1)) $4 $3 $2;fi;};if [ $# -eq 3 ]&&[ $3 -ge 1 -a $1 -le \
	3 -a $1 -ge 1 -a $2 -le 3 -a $2 -ge 1 -a $1 -ne $2 ];then m $3 $1 $2 $\
	((6-$1-$2)); else echo Usage: /bin/sh hanoi.sh from to num; fi #by rhb

$ bash2 hanoi.sh 1 2 3
1 2
1 3
Segmentation fault (core dumped)

Submitted by:	Christian Weisgerber <naddy@mips.inka.de>
2001-03-17 01:24:32 +00:00
Martin Cracauer 913c2b25ba Re-add patch for failglob variable (see previous discussion on -commiters) 2000-05-24 10:33:20 +00:00
Martin Cracauer 9702f6aa4c Fix trace() symbol clash with ncurses
Untested (4-stable) commit by: ache
2000-05-24 10:12:01 +00:00
Andrey A. Chernov a4923c39c3 Upgrade to 2.04
failglob patch removed - this sort of patches must be submitted to bash
maintainer
2000-05-07 20:33:34 +00:00
Steve Price aef431088b Don't coredump under certain conditions where the pid > 32000.
PR:		12174
Submitted by:	Dirk Meyer <dirk.meyer@home.dinoex.sub.org>
1999-12-29 08:47:55 +00:00
Steve Price 84a09442f0 Use --entry instead of --defentry so this port doesn't fail on older
versions of FreeBSD.

PR:		12746
1999-12-29 07:38:42 +00:00
Martin Cracauer 77472e1501 Add `failglob' option as announced on -ports mailing list. 1999-12-03 19:50:51 +00:00
Andrey A. Chernov b5ee8a0541 Fixes for freebsd,ELF,-current
Upgrade docs to 2.03
1999-05-28 01:09:20 +00:00
Martin Cracauer dcc36469d1 Update to 2.03 (maintainer did not respond) 1999-04-19 08:42:21 +00:00
Andrey A. Chernov afec97d4f4 Install /etc/shells entry and info dir entry
PR: 3971
1997-06-27 23:03:34 +00:00
Andrey A. Chernov 685f8803f4 Upgrade to 2.01 1997-06-06 23:13:54 +00:00
Andrey A. Chernov 48748db13a Upgrade to 2.0 1996-12-27 11:40:57 +00:00