Fixed bbs user missing homedirectory
This commit is contained in:
parent
e2030a7907
commit
053182b875
@ -22,6 +22,8 @@ v0.61.1 20-Jun-2004.
|
||||
mbsebbs:
|
||||
Added user@domain login for pop3 mailboxes.
|
||||
If pop3 login fails, the bbs won't hang.
|
||||
If a users homedirectory doesn't exist, a correct error message
|
||||
is displayed and logged.
|
||||
|
||||
mbsetup:
|
||||
Added user@domain login for pop3 servers in screen 1.12.
|
||||
|
@ -57,6 +57,7 @@ int main(int argc, char **argv)
|
||||
FILE *pTty;
|
||||
char *p, *tty, temp[PATH_MAX];
|
||||
int i;
|
||||
struct stat sb;
|
||||
|
||||
printf("Loading MBSE BBS ...\n");
|
||||
pTTY = calloc(15, sizeof(char));
|
||||
@ -173,6 +174,17 @@ int main(int argc, char **argv)
|
||||
colour(WHITE, BLACK);
|
||||
printf("%s\n\n", COPYRIGHT);
|
||||
|
||||
/*
|
||||
* Check users homedirectory, some *nix systems let users in if no
|
||||
* homedirectory exists
|
||||
*/
|
||||
sprintf(temp, "%s/%s", CFG.bbs_usersdir, sUnixName);
|
||||
if (stat(temp, &sb)) {
|
||||
printf("No homedirectory\n\n");
|
||||
WriteError("homedirectory %s doesn't exist", temp);
|
||||
Quick_Bye(MBERR_OK);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if this port is available. In iNode we set a fake
|
||||
* line number, this will be used by doors.
|
||||
|
Reference in New Issue
Block a user