From 0d9c6e60d58c05a2ba6d2ead3a917a11a972e900 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 25 Jan 2017 14:03:51 +0100 Subject: [PATCH] screen: critical security fix for #5603 We revert the critical hunk for now. setgid yet needs to be figured out, as screen can then not create /run/screens itself. --- srcpkgs/screen/patches/revert-c575c40c.patch | 15 +++++++++++++++ srcpkgs/screen/template | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/screen/patches/revert-c575c40c.patch diff --git a/srcpkgs/screen/patches/revert-c575c40c.patch b/srcpkgs/screen/patches/revert-c575c40c.patch new file mode 100644 index 0000000000..055eb8b34d --- /dev/null +++ b/srcpkgs/screen/patches/revert-c575c40c.patch @@ -0,0 +1,15 @@ +--- screen.c.orig ++++ screen.c +@@ -673,12 +673,6 @@ + Panic(0, "-L: logfile name can not start with \"-\" symbol"); + if (strlen(screenlogfile) > PATH_MAX) + Panic(0, "-L: logfile name too long. (max. %d char)", PATH_MAX); +- +- FILE *w_check; +- if ((w_check = fopen(screenlogfile, "w")) == NULL) +- Panic(0, "-L: logfile name access problem"); +- else +- fclose(w_check); + } + nwin_options.Lflag = 1; + break; diff --git a/srcpkgs/screen/template b/srcpkgs/screen/template index 05358aa892..b443c2fc72 100644 --- a/srcpkgs/screen/template +++ b/srcpkgs/screen/template @@ -1,7 +1,7 @@ # Template file for 'screen' pkgname=screen version=4.5.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-sys-screenrc=/etc/screenrc --enable-pam --enable-colors256 --enable-rxvt_osc --enable-telnet