]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/user_ops.c
striplt() is now string_trim()
[citadel.git] / citadel / server / user_ops.c
index d341b31c0158db7d25df6575e3c3945a5bfb1d25..62b11981cc625ac5b25df5c3d460ab2eed8a8d7e 100644 (file)
@@ -4,11 +4,6 @@
 //
 // This program is open source software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License, version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -483,7 +478,7 @@ int CtdlLoginExistingUser(const char *trythisname) {
 
        // Continue attempting user validation...
        safestrncpy(username, trythisname, sizeof (username));
-       striplt(username);
+       string_trim(username);
 
        if (IsEmptyStr(username)) {
                return login_not_found;
@@ -497,13 +492,8 @@ int CtdlLoginExistingUser(const char *trythisname) {
        
                syslog(LOG_DEBUG, "user_ops: asking host about <%s>", username);
 #ifdef HAVE_GETPWNAM_R
-#ifdef SOLARIS_GETPWUID
-               syslog(LOG_DEBUG, "user_ops: calling getpwnam_r()");
-               tempPwdPtr = getpwnam_r(username, &pd, pwdbuffer, sizeof pwdbuffer);
-#else // SOLARIS_GETPWUID
                syslog(LOG_DEBUG, "user_ops: calling getpwnam_r()");
                getpwnam_r(username, &pd, pwdbuffer, sizeof pwdbuffer, &tempPwdPtr);
-#endif // SOLARIS_GETPWUID
 #else // HAVE_GETPWNAM_R
                syslog(LOG_DEBUG, "user_ops: SHOULD NEVER GET HERE!!!");
                tempPwdPtr = NULL;