[kde-freebsd] KDE/kdebase/workspace/kdm/kfrontend
Raphael Kubo da Costa
kubito at gmail.com
Thu Oct 28 23:34:03 CEST 2010
SVN commit 1190779 by rkcosta:
Properly quote the call to 'export -p'.
Even though bash (and dash) do not differ 'export' and 'export -p', that call
was clearly wrong as the -p was being passed as a parameter to /bin/sh, not
export.
Thanks to M. Warner Losh for bringing that up.
Will backport to the 4.5 branch.
CCMAIL: imp at ixsystems.com
CCMAIL: kde-freebsd at kde.org
M +1 -1 genkdmconf.c
--- trunk/KDE/kdebase/workspace/kdm/kfrontend/genkdmconf.c #1190778:1190779
@@ -729,7 +729,7 @@
" 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 -p >! $xsess_tmp\"\n"
+" $SHELL -c \"if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $xsess_tmp\"\n"
" . $xsess_tmp\n"
" rm -f $xsess_tmp\n"
" ;;\n"
More information about the kde-freebsd
mailing list