[kde-freebsd] branches/KDE/4.5/kdebase/workspace/kdm/kfrontend

Raphael Kubo da Costa kubito at gmail.com
Thu Oct 28 23:35:18 CEST 2010


SVN commit 1190780 by rkcosta:

Backport r1190779.

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.

CCMAIL: imp at ixsystems.com
CCMAIL: kde-freebsd at kde.org


 M  +1 -1      genkdmconf.c  


--- branches/KDE/4.5/kdebase/workspace/kdm/kfrontend/genkdmconf.c #1190779:1190780
@@ -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