Date: Wed, 6 Oct 2004 18:31:39 +0200 (CEST) From: Jose M Rodriguez <josemi@freebsd.jazztel.es> To: FreeBSD-gnats-submit@FreeBSD.org Cc: portmgr@FreeBSD.org Subject: ports/72388: Induced ENV through Xsession script Message-ID: <200410061631.i96GVdsp002036@redesjm.local> Resent-Message-ID: <200410061640.i96GeQv2075457@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72388 >Category: ports >Synopsis: Induced ENV through Xsession script >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 06 16:40:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jose M Rodriguez >Release: FreeBSD 5.3-BETA7 i386 >Organization: Redes JM >Environment: System: FreeBSD orion.redesjm.local 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Mon Oct 4 07:55:38 CEST 2004 root@antares.redesjm.local:/usr/obj/usr/src/sys/ORION i386 >Description: kdebase3 generated Xsession script still have problem for csh users. And unwanted Environment is induced by /bin/sh -c set As a result, a malformed IFS is set as an env var. >How-To-Repeat: Set csh as your shell and launch any desktop from kdm You may see things like PS1,PS2,IFS in your xterm env. >Fix: use /usr/bin/env instead o /bin/sh -c set don't set TERM or SHLVL from here --- patch-kdebase3 begins here --- diff -Nru /usr/ports/x11/kdebase3/files/patch-kdm-kfrontend-genkdmconf.c x11/kdebase3/files/patch-kdm-kfrontend-genkdmconf.c --- /usr/ports/x11/kdebase3/files/patch-kdm-kfrontend-genkdmconf.c Fri Sep 24 08:40:28 2004 +++ x11/kdebase3/files/patch-kdm-kfrontend-genkdmconf.c Wed Oct 6 18:20:23 2004 @@ -25,7 +25,7 @@ " # Note that sourcing csh.login after .cshrc is non-standard.\n" " set -a\n" -" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|_)=\"'`\n" -+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n" ++" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; /usr/bin/env | egrep -v \"^(TERM|SHLVL)=\"'`\n" " set +a\n" " ;;\n" " *) # Plain sh, ksh, and anything we don't know.\n" --- patch-kdebase3 ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410061631.i96GVdsp002036>