$NetBSD: patch-as,v 1.6 2007/11/01 10:35:57 markd Exp $

--- kdm/kfrontend/genkdmconf.c.orig	2007-11-01 01:09:12.000000000 +1300
+++ kdm/kfrontend/genkdmconf.c
@@ -673,7 +673,7 @@ static const char def_session1[] =
 "    xsess_tmp=";
 static const char def_session2[] =
 "\n"
-"    $SHELL -c \"if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c export >! $xsess_tmp\"\n"
+"    $SHELL -c \"if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; env >! $xsess_tmp\"\n"
 "    . $xsess_tmp\n"
 "    rm -f $xsess_tmp\n"
 "    ;;\n"
