Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6490941fd0cd3f4a6b388b0afe9d4a88bf88d97e
commit 6490941fd0cd3f4a6b388b0afe9d4a88bf88d97e Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Thu May 22 13:18:26 2008 +0200 aterm-1.0.1-2-i686 - added -display-security-issue.patch - closes #3088 diff --git a/source/xlib/aterm/FrugalBuild b/source/xlib/aterm/FrugalBuild index b4fa398..85d5b6c 100644 --- a/source/xlib/aterm/FrugalBuild +++ b/source/xlib/aterm/FrugalBuild @@ -3,7 +3,7 @@ pkgname=aterm pkgver=1.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="A VT100 terminal emulator for X with transparency support" url="http://aterm.sourceforge.net/" depends=('libxext' 'libsm' 'libxt') @@ -11,7 +11,9 @@ groups=('xlib') archs=('i686' 'x86_64') _F_sourceforge_ext=".tar.bz2" Finclude sourceforge -sha1sums=('a975753b415306a0734efc3773de8a86129bb54b') +source=($source aterm-1.0.1-display-security-issue.patch) +sha1sums=('a975753b415306a0734efc3773de8a86129bb54b' \ + '11f7a0e6c2bc6fa7400d4c3f360d0da331a5b816') Fconfopts="$Fconfopts --enable-transparency=yes --enable-background-image --enable-fading \ --enable-menubar --enable-graphics" # optimization OK diff --git a/source/xlib/aterm/aterm-1.0.1-display-security-issue.patch b/source/xlib/aterm/aterm-1.0.1-display-security-issue.patch new file mode 100644 index 0000000..e44c0b3 --- /dev/null +++ b/source/xlib/aterm/aterm-1.0.1-display-security-issue.patch @@ -0,0 +1,24 @@ +--- aterm-1.0.1/src/main.c 2007-08-01 16:08:29.000000000 +0200 ++++ aterm-1.0.1.new/src/main.c 2008-05-03 14:06:52.000000000 +0200 +@@ -2057,10 +2057,6 @@ + */ + get_options(argc, argv); + +- if( display_name == NULL ) +- if ((display_name = getenv("DISPLAY")) == NULL) +- display_name = ":0"; +- + #ifdef HAVE_AFTERSTEP + #ifdef MyArgs_IS_MACRO + MyArgsPtr = safecalloc(1, sizeof(ASProgArgs) ); +@@ -2102,7 +2098,9 @@ + Xdisplay = XOpenDisplay(display_name); + + if (!Xdisplay) { +- print_error("can't open display %s", display_name); ++ print_error("can't open display %s", display_name?display_name: ++ getenv("DISPLAY")?getenv("DISPLAY"): ++ "as no -d given and DISPLAY not set"); + exit(EXIT_FAILURE); + } + /* changed from _MOTIF_WM_INFO - Vaevictus - gentoo bug #139554 */ _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git