head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.32 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.30 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.28 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.26 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.24 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.22 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.20 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.18 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.16 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.14 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.12 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.10 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.8 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.6 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.4 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.2 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.3.0.16 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.14 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.12 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.10 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.8 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.6 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.4 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.2 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.1.0.2 netbsd-1-6-1-base:1.1; locks; strict; comment @# @; 1.4 date 2006.07.02.09.26.16; author martti; state dead; branches; next 1.3; 1.3 date 2004.07.31.01.25.33; author kristerw; state Exp; branches; next 1.2; 1.2 date 2003.06.01.06.53.31; author martti; state dead; branches; next 1.1; 1.1 date 2003.02.12.00.47.53; author atatat; state Exp; branches; next ; desc @@ 1.4 log @Moved fvwm2 to fvwm. @ text @$NetBSD: patch-ac,v 1.3 2004/07/31 01:25:33 kristerw Exp $ --- libs/Picture.c.orig Sat Jul 31 02:18:29 2004 +++ libs/Picture.c Sat Jul 31 02:27:44 2004 @@@@ -75,7 +75,15 @@@@ Bool Pdefault; Visual *Pvisual; static Visual *FvwmVisual; +#ifdef __APPLE__ +/* The Apple toolchain has some quirks with common symbols in archives + * which makes it fail to pull in a file into a binary if only common + * symbols are needed from that file. Work around this by initializing + * one of the variables. */ +Colormap Pcmap = {0}; +#else Colormap Pcmap; +#endif static Colormap FvwmCmap; unsigned int Pdepth; static unsigned int FvwmDepth; @ 1.3 log @Fix a build problem seen on OS X. The Apple toolchain has some quirks with common symbols in archives which makes it fail to pull in a file into a binary if only common symbols are needed from that file. Work around this by initializing one of the variables. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Updated fvwm2 to 2.4.16 * Bug fixes * All single letter variables are deprecated now; new variables: $[w.id], $[w.name], $[w.iconname], $[w.class], $[w.resource], $[desk.n], $[version.num], $[version.info], $[version.line], $[desk.pagesx], $[desk.pagesy] * The NoWarp menu position hint option works with root menus too. * WindowListFunc is executed now within a window context, so a prefix "WindowId $0" is not needed in its definition anymore and it is advised to remove it in user configs. * FvwmEvent now executes all window related events within a window context, so PassId is not needed anymore, and all prefixes "WindowId $0" may be removed in user event handlers. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2003/02/12 00:47:53 atatat Exp $ d3 18 a20 25 Re-open /dev/null on the (now) closed stdin file descriptor. The fvwm2 changelog says they did this to make gmplayer realize it was not running interactively (ie, its stdin was not a tty), but that means that all things get executed with stdin closed. That's not a very good security posture. Some things can get confused or do wrong things if stdin is closed when they start. --- fvwm/builtins.c.orig 2003-01-16 07:58:58.000000000 -0500 +++ fvwm/builtins.c @@@@ -23,6 +23,7 @@@@ #include "config.h" +#include #include #include #include @@@@ -784,6 +785,7 @@@@ void CMD_Exec(F_CMD_ARGS) { /* close stdin so the exec'd process knows its not interactive */ close(0); + open("/dev/null", O_RDWR); if (execl(exec_shell_name, exec_shell_name, "-c", cmd, NULL)==-1) { fvwm_msg(ERR,"exec_function","execl failed (%s)",strerror(errno)); @ 1.1 log @Re-open /dev/null on the (now) closed stdin file descriptor. The fvwm2 changelog says they did this to make gmplayer realize it was not running interactively (ie, its stdin was not a tty), but that means that all things get executed with stdin closed. That's not a very good security posture. Some things can get confused or do wrong things if stdin is closed when they start. @ text @d1 1 a1 1 $NetBSD$ @