瀏覽代碼

fixed default shell

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@115 7c53e7cc-98ea-0310-8f1f-a0b24da60408
sip 17 年之前
父節點
當前提交
9a5ec46685
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      input.cpp

+ 1 - 1
input.cpp

@@ -104,7 +104,7 @@ struct passwd* Input::GetPasswdStruct() {
     endpwent();
     endpwent();
     if (pw->pw_shell[0] == '\0') {
     if (pw->pw_shell[0] == '\0') {
         setusershell();
         setusershell();
-        pw->pw_shell = getusershell();
+        strcpy(pw->pw_shell, getusershell());
         endusershell();
         endusershell();
     }
     }
     return pw;
     return pw;