From 77e41cd138a888fa0f7c977e82b1a95092707042 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 31 Mar 2004 18:43:58 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1656 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 1 + mbbsd/passwd.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 95883f86..a532f977 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -615,6 +615,7 @@ login_query() break; } } else { /* guest */ + strcpy(cuser.userid, STR_GUEST); cuser->userlevel = 0; cuser->uflag = COLOR_FLAG | PAGER_FLAG | BRDSORT_FLAG | MOVIE_FLAG; mkuserdir(cuser->userid); diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index ec4e68ec..cd679f03 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -128,11 +128,7 @@ int initcuser(char *userid) // Ptt: setup cuser and usernum here if(userid[0]=='\0' || !(usernum = searchuser(userid)) || usernum > MAX_USERS) - { - memset(&userecbuf, 0, sizeof(userecbuf)); - strcpy(userecbuf.userid, STR_GUEST); return -1; - } passwd_query(usernum, &userecbuf); cuser = &userecbuf; return usernum; -- cgit v1.2.3