[PC-BSD Commits] r21662 - in pcbsd-projects/PCDM: . rc.d

svn at pcbsd.org svn at pcbsd.org
Tue Feb 26 16:14:51 PST 2013


Author: kenmoore
Date: 2013-02-27 00:14:50 +0000 (Wed, 27 Feb 2013)
New Revision: 21662

Modified:
   pcbsd-projects/PCDM/pcdm-backend.cpp
   pcbsd-projects/PCDM/rc.d/pcdm
Log:
Fix a couple minor bugs with the login environment for PCDM



Modified: pcbsd-projects/PCDM/pcdm-backend.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-backend.cpp	2013-02-26 23:57:44 UTC (rev 21661)
+++ pcbsd-projects/PCDM/pcdm-backend.cpp	2013-02-27 00:14:50 UTC (rev 21662)
@@ -182,7 +182,8 @@
   environ.insert("LOGNAME",saveUsername); //Login name
   environ.insert("USERNAME",saveUsername); // Username
   environ.insert("PATH",environ.value("PATH")+":"+homeDir+"/bin"); // Append the user's home dir to the path
-  environ.insert("LANG",langCode+"."+environ.value("MM_CHARSET")); //Set the proper localized language
+  if(langCode != "C"){ langCode.append("."+environ.value("MM_CHARSET")); }
+  environ.insert("LANG",langCode); //Set the proper localized language
   environ.insert("MAIL","/var/mail/"+saveUsername); //Set the mail variable
   environ.insert("GROUP",saveUsername); //Set the proper group id
   environ.insert("SHLVL","1"); //Set the proper shell level

Modified: pcbsd-projects/PCDM/rc.d/pcdm
===================================================================
--- pcbsd-projects/PCDM/rc.d/pcdm	2013-02-26 23:57:44 UTC (rev 21661)
+++ pcbsd-projects/PCDM/rc.d/pcdm	2013-02-27 00:14:50 UTC (rev 21662)
@@ -75,8 +75,8 @@
     fi
 
     #Start the PCDM login daemon
-    ${command} ${pcdm_flags} 
-    #) &
+    ${command} ${pcdm_flags} &
+
 }
 
 run_rc_command "$1"



More information about the Commits mailing list