another try to fix filetransfers...
This commit is contained in:
parent
7c5ab56fc0
commit
6dac062352
10
files.c
10
files.c
@ -226,14 +226,16 @@ void upload(struct user_record *user) {
|
|||||||
int rc;
|
int rc;
|
||||||
struct stat s;
|
struct stat s;
|
||||||
char *err_msg = NULL;
|
char *err_msg = NULL;
|
||||||
struct termios oldt;
|
struct termios oldit;
|
||||||
|
struct termios oldot
|
||||||
if (sshBBS) {
|
if (sshBBS) {
|
||||||
ttySetRaw(STDIN_FILENO, &oldt);
|
ttySetRaw(STDIN_FILENO, &oldit);
|
||||||
|
ttySetRaw(STDOUT_FILENO, &oldot);
|
||||||
}
|
}
|
||||||
upload_zmodem(user);
|
upload_zmodem(user);
|
||||||
if (sshBBS) {
|
if (sshBBS) {
|
||||||
tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
|
tcsetattr(STDIN_FILENO, TCSANOW, &oldit);
|
||||||
|
tcsetattr(STDOUT_FILENO, TCSANOW, &oldot);
|
||||||
}
|
}
|
||||||
|
|
||||||
s_printf("\r\nPlease enter a description:\r\n");
|
s_printf("\r\nPlease enter a description:\r\n");
|
||||||
|
Reference in New Issue
Block a user