ports/98092: Xsession fails with csh shell
Fernando Schapachnik
fernando at schapachnik.com.ar
Mon May 29 15:10:36 UTC 2006
>Number: 98092
>Category: ports
>Synopsis: Xsession fails with csh shell
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon May 29 15:10:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Fernando Schapachnik
>Release: FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD machine 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
KDE 3.5
>Description:
Using kdm and login with csh as as shell Xsession fails because it calls mktemp without parameters.
As a consecuence ~/.login is not executed.
>How-To-Repeat:
>Fix:
Apply the following patch (/usr/local/share/config/kdm/Xsession).
--- Xsession.orig Mon May 29 10:20:57 2006
+++ Xsession Mon May 29 10:18:30 2006
@@ -31,7 +31,7 @@
*/csh|*/tcsh)
# [t]cshrc is always sourced automatically.
# Note that sourcing csh.login after .cshrc is non-standard.
- xsess_tmp=`mktemp`
+ xsess_tmp=`mktemp /tmp/kdm.XXXX`
$SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c export > $xsess_tmp"
. $xsess_tmp
rm -f $xsess_tmp
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list