From nobody@FreeBSD.org  Tue Apr 27 23:43:44 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D97EE106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Apr 2010 23:43:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CB3918FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Apr 2010 23:43:44 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3RNhieW087660
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 27 Apr 2010 23:43:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o3RNhiiA087659;
	Tue, 27 Apr 2010 23:43:44 GMT
	(envelope-from nobody)
Message-Id: <201004272343.o3RNhiiA087659@www.freebsd.org>
Date: Tue, 27 Apr 2010 23:43:44 GMT
From: Jim Pirzyk <pirzyk@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kdm does not work with users who use KSH
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         146101
>Category:       ports
>Synopsis:       x11/kdebase4: kdm does not work with users who use KSH
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 27 23:50:00 UTC 2010
>Closed-Date:    Wed Apr 28 15:46:04 UTC 2010
>Last-Modified:  Wed Apr 28 15:46:04 UTC 2010
>Originator:     Jim Pirzyk
>Release:        FreeBSD-8.0-RELEASE-p2
>Organization:
>Environment:
FreeBSD pcbsd.home.pirzyk.org 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD  i386
>Description:
If a user has KSH specific commands in their $HOME/.profile and sourcing (. $HOME/.profile) the file causes an error, the user will not be able to login via kdm.
>How-To-Repeat:
Create a user that uses ksh/pdksh and put KSH specific commands into the $HOME/.profile.  Try to login via kdm
>Fix:
Patching /usr/local/kde4/share/config/kdm/Xsession with the given patch solves the problem, but because Xsession is not part of the kdebase-workspace-4.3.5 package, the bin/genkdmconf command needs to be patched.

Patch attached with submission follows:

--- Xsession.orig	2010-04-27 13:32:09.000000000 -0400
+++ Xsession	2010-04-27 14:06:25.000000000 -0400
@@ -36,7 +36,13 @@
     . $xsess_tmp
     rm -f $xsess_tmp
     ;;
-  *) # Plain sh, ksh, and anything we do not know.
+  */ksh)
+    # KSH_VERSION is only defined by pdksh and not the ATT ksh.
+    [ -z "$RANDOM" ] && exec $SHELL $0 "$@"
+    [ -f /etc/profile ] && . /etc/profile
+    [ -f $HOME/.profile ] && . $HOME/.profile
+    ;;
+  *) # Plain sh, and anything we do not know.
     [ -f /etc/profile ] && . /etc/profile
     [ -f $HOME/.profile ] && . $HOME/.profile
     ;;


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Apr 28 02:02:11 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146101 
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Wed Apr 28 15:46:03 UTC 2010 
State-Changed-Why:  
Please, submit KDE specific problems to bugs.kde.org directly. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146101 
>Unformatted:
