Skip to content

Instantly share code, notes, and snippets.

@8l
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8l/3474f39b4bfef001847e to your computer and use it in GitHub Desktop.
Save 8l/3474f39b4bfef001847e to your computer and use it in GitHub Desktop.
simple bash shellshock patch
#!/bin/sh
set -e
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
tar xf bash-4.3.tar.gz
wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-0{01..42}
cd bash-4.3
for i in ../bash43-0* ; do patch -p0 < ${i}; done
./configure --prefix=/usr \
--bindir=/bin \
--docdir=/usr/share/doc/bash-4.3.42 \
--without-bash-malloc \
--with-installed-readline
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment