now for downloads...
This commit is contained in:
parent
42ef279092
commit
0b745be47d
12
files.c
12
files.c
@ -368,7 +368,12 @@ void download(struct user_record *user) {
|
|||||||
sqlite3 *db;
|
sqlite3 *db;
|
||||||
sqlite3_stmt *res;
|
sqlite3_stmt *res;
|
||||||
int rc;
|
int rc;
|
||||||
|
struct termios oldit;
|
||||||
|
struct termios oldot;
|
||||||
|
if (sshBBS) {
|
||||||
|
ttySetRaw(STDIN_FILENO, &oldit);
|
||||||
|
ttySetRaw(STDOUT_FILENO, &oldot);
|
||||||
|
}
|
||||||
for (i=0;i<tagged_count;i++) {
|
for (i=0;i<tagged_count;i++) {
|
||||||
|
|
||||||
download_zmodem(user, tagged_files[i]);
|
download_zmodem(user, tagged_files[i]);
|
||||||
@ -418,6 +423,11 @@ void download(struct user_record *user) {
|
|||||||
sqlite3_close(db);
|
sqlite3_close(db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sshBBS) {
|
||||||
|
tcsetattr(STDIN_FILENO, TCSANOW, &oldit);
|
||||||
|
tcsetattr(STDOUT_FILENO, TCSANOW, &oldot);
|
||||||
|
}
|
||||||
|
|
||||||
for (i=0;i<tagged_count;i++) {
|
for (i=0;i<tagged_count;i++) {
|
||||||
free(tagged_files[i]);
|
free(tagged_files[i]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user