]> code.citadel.org Git - citadel.git/blobdiff - citadel/user_ops.c
* Removed userspace buffering. Everyone has TCP_CORK or TCP_NOPUSH nowadays.
[citadel.git] / citadel / user_ops.c
index 894548cab31326c5ffaaba19121b2ceff9c10440..e9f5b6d11e41f410d4731520a798bf1ddf56747e 100644 (file)
@@ -728,9 +728,7 @@ void logout(void)
                purge_user(CCC->user.fullname);
 
        /* Free any output buffers */
-       if (CCC->output_buffer != NULL) {
-               unbuffer_output();
-       }
+       unbuffer_output();
 }
 
 /*
@@ -1062,14 +1060,7 @@ int create_user(char *newusername, int become_user)
                        uid = pd.pw_uid;
                        if (IsEmptyStr (username))
                        {
-                               CtdlLogPrintf (CTDL_EMERG, 
-                                        "Can't find Realname for user %s [%d] in the Host Auth Database; giving up.\n", 
-                                        newusername, pd.pw_uid);
-                               snprintf(buf, SIZ, 
-                                        "Can't find Realname for user %s [%d] in the Host Auth Database; giving up.\n",
-                                        newusername, pd.pw_uid);
-                               aide_message(buf, "User Creation Failure Notice");
-
+                               safestrncpy(username, pd.pw_name, sizeof username);
                        }
                }
                else {