git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11615 from rycee/fix/screen-CVE-2015-6806

screen: patch CVE-2015-6806

commitc20dbdfc84840f97e1b98562cc0280ff093e4491 authorPeter Simons <simons@cryp.to> dateFri 11 Dec 2015, 19:39 (11 years ago) parenta7fe3c6c4ab553
1 file changed+10−3
pkgs/tools/misc/screen/default.nix+10−3
pkgs/tools/misc/screen/default.nix+10−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, ncurses, pam ? null }:
1+{ stdenv, fetchurl, fetchpatch, ncurses, pam ? null }:
22
33stdenv.mkDerivation rec {
44 name = "screen-4.3.1";
@@ -13,8 +13,15 @@ stdenv.mkDerivation rec {
1313 sed -i -e "s|/usr/local|/non-existent|g" -e "s|/usr|/non-existent|g" configure Makefile.in */Makefile.in
1414 '';
1515
16− # TODO: remove when updating the version of screen. Only a patch for 4.3.1
17− patches = stdenv.lib.optional stdenv.isDarwin (fetchurl {
16+ # TODO: remove when updating the version of screen. Only patches for 4.3.1
17+ patches = [
18+ (fetchpatch {
19+ name = "CVE-2015-6806.patch";
20+ stripLen = 1;
21+ url = "http://git.savannah.gnu.org/cgit/screen.git/patch/?id=b7484c224738247b510ed0d268cd577076958f1b";
22+ sha256 = "160zhpzi80qkvwib78jdvx4jcm2c2h59q5ap7hgnbz4xbkb3k37l";
23+ })
24+ ] ++ stdenv.lib.optional stdenv.isDarwin (fetchurl {
1825 url = "http://savannah.gnu.org/file/screen-utmp.patch\?file_id=34815";
1926 sha256 = "192dsa8hm1zw8m638avzhwhnrddgizhyrwaxgwa96zr9vwai2nvc";
2027 });