Browse Source

fixed default shell

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@115 7c53e7cc-98ea-0310-8f1f-a0b24da60408
sip 17 years ago
parent
commit
9a5ec46685
1 changed files with 1 additions and 1 deletions
  1. 1 1
      input.cpp

+ 1 - 1
input.cpp

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