[PC-BSD Commits] r21894 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Mon Mar 18 09:06:24 PDT 2013


Author: kenmoore
Date: 2013-03-18 16:06:23 +0000 (Mon, 18 Mar 2013)
New Revision: 21894

Modified:
   pcbsd-projects/PCDM/pcdm-xprocess.cpp
   pcbsd-projects/PCDM/pcdm.conf
Log:
Do no add anything to the LANG variable if it is detected as "C"



Modified: pcbsd-projects/PCDM/pcdm-xprocess.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-xprocess.cpp	2013-03-18 14:28:38 UTC (rev 21893)
+++ pcbsd-projects/PCDM/pcdm-xprocess.cpp	2013-03-18 16:06:23 UTC (rev 21894)
@@ -65,7 +65,8 @@
   environ.insert("LOGNAME",xuser); //Login name
   environ.insert("USERNAME",xuser); // Username
   environ.insert("PATH",environ.value("PATH")+":"+xhome+"/bin"); // Append the user's home dir to the path
-  if(!environ.value("MM_CHARSET").isEmpty()){ langCode.append( "."+environ.value("MM_CHARSET") ); }
+  if( langCode.toLower() == "c" ){} // do nothing extra to it
+  else if(!environ.value("MM_CHARSET").isEmpty() ){ langCode.append( "."+environ.value("MM_CHARSET") ); }
   else{ langCode.append(".UTF-8"); }
   environ.insert("LANG",langCode); //Set the proper localized language
   environ.insert("MAIL","/var/mail/"+xuser); //Set the mail variable

Modified: pcbsd-projects/PCDM/pcdm.conf
===================================================================
--- pcbsd-projects/PCDM/pcdm.conf	2013-03-18 14:28:38 UTC (rev 21893)
+++ pcbsd-projects/PCDM/pcdm.conf	2013-03-18 16:06:23 UTC (rev 21894)
@@ -17,3 +17,6 @@
 AUTO_LOGIN_USER=no-username
 AUTO_LOGIN_DESKTOP=nothing.desktop   # *.desktop file (absolute path or relative to DE_STARTUP_DIR)
 
+## XDMCP SUPPORT ##
+## This presents a security risk - use carefully! ##
+ALLOW_REMOTE_LOGIN=FALSE



More information about the Commits mailing list