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:
|
mbsebbs:
|
||||||
Added user@domain login for pop3 mailboxes.
|
Added user@domain login for pop3 mailboxes.
|
||||||
If pop3 login fails, the bbs won't hang.
|
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:
|
mbsetup:
|
||||||
Added user@domain login for pop3 servers in screen 1.12.
|
Added user@domain login for pop3 servers in screen 1.12.
|
||||||
|
@ -54,9 +54,10 @@ time_t t_start;
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
FILE *pTty;
|
FILE *pTty;
|
||||||
char *p, *tty, temp[PATH_MAX];
|
char *p, *tty, temp[PATH_MAX];
|
||||||
int i;
|
int i;
|
||||||
|
struct stat sb;
|
||||||
|
|
||||||
printf("Loading MBSE BBS ...\n");
|
printf("Loading MBSE BBS ...\n");
|
||||||
pTTY = calloc(15, sizeof(char));
|
pTTY = calloc(15, sizeof(char));
|
||||||
@ -173,6 +174,17 @@ int main(int argc, char **argv)
|
|||||||
colour(WHITE, BLACK);
|
colour(WHITE, BLACK);
|
||||||
printf("%s\n\n", COPYRIGHT);
|
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
|
* Check if this port is available. In iNode we set a fake
|
||||||
* line number, this will be used by doors.
|
* line number, this will be used by doors.
|
||||||
|
Reference in New Issue
Block a user