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: i...@ixsystems.com
CCMAIL: kde-freebsd@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"
_______________________________________________
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information

Reply via email to