some diagnostic messages
This commit is contained in:
parent
0ff68b92c7
commit
1d761735a5
4
bbs.c
4
bbs.c
@ -567,6 +567,8 @@ void runbbs_real(int socket, char *ip, int ssh) {
|
||||
disconnect("Incorrect Login");
|
||||
}
|
||||
|
||||
gUser = user;
|
||||
|
||||
for (i=1;i<=conf.nodes;i++) {
|
||||
sprintf(buffer, "%s/nodeinuse.%d", conf.bbs_path, i);
|
||||
if (stat(buffer, &s) == 0) {
|
||||
@ -639,7 +641,7 @@ void runbbs_real(int socket, char *ip, int ssh) {
|
||||
user->laston = now;
|
||||
save_user(user);
|
||||
}
|
||||
gUser = user;
|
||||
|
||||
user->timeson++;
|
||||
|
||||
|
||||
|
2
main.c
2
main.c
@ -518,6 +518,7 @@ void serverssh(int port) {
|
||||
}
|
||||
} while(!chan);
|
||||
if (!chan) {
|
||||
fprintf(stderr, "Failed to get channel\n");
|
||||
ssh_finalize();
|
||||
exit(-1);
|
||||
}
|
||||
@ -543,6 +544,7 @@ void serverssh(int port) {
|
||||
} while (!shell);
|
||||
|
||||
if (!shell) {
|
||||
fprintf(stderr, "Failed to get shell\n");
|
||||
ssh_finalize();
|
||||
exit(-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user