ports/72388: Induced ENV through Xsession script

Jose M Rodriguez josemi at freebsd.jazztel.es
Wed Oct 6 16:40:26 UTC 2004

>Number:         72388
>Category:       ports
>Synopsis:       Induced ENV through Xsession script
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 06 16:40:26 GMT 2004
>Originator:     Jose M Rodriguez
>Release:        FreeBSD 5.3-BETA7 i386
Redes JM
System: FreeBSD orion.redesjm.local 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Mon Oct 4 07:55:38 CEST 2004 root at antares.redesjm.local:/usr/obj/usr/src/sys/ORION i386

	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.

	Set csh as your shell and launch any desktop from kdm
	You may see things like PS1,PS2,IFS in your xterm env.

	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 ---


More information about the freebsd-ports-bugs mailing list