almost finished internal zmodem

This commit is contained in:
Michiel Broek
2004-11-21 13:43:51 +00:00
parent 5c14f4e833
commit fd0d10b7c3
3 changed files with 14 additions and 5 deletions

View File

@@ -440,7 +440,7 @@ int upload(up_list **upload_list)
if (*(dp->d_name) != '.') {
if (rc == 0) {
stat(dp->d_name, &statfile);
Syslog('+', "Uploaded \"%s\", %ld bytes", dp->d_name, statfile.st_size);
Syslog('b', "Uploaded \"%s\", %ld bytes", dp->d_name, statfile.st_size);
sprintf(temp, "%s/%s/upl/%s", CFG.bbs_usersdir, exitinfo.Name, dp->d_name);
chmod(temp, 0660);

View File

@@ -160,7 +160,7 @@ again:
switch (zgethdr(Rxhdr)) {
case ZRQINIT: continue;
case ZEOF: continue;
case TIMEOUT: Syslog('+', "Zmodem: tryz() timeout attempt %d", n);
case TIMEOUT: Syslog('z', "Zmodem: tryz() timeout attempt %d", n);
continue;
case ZFILE: zconv = Rxhdr[ZF0];
if (!zconv) {
@@ -291,7 +291,7 @@ nxthdr:
}
continue;
case TIMEOUT: if ( --n < 0) {
Syslog('+', "Zmodem: TIMEOUT");
Syslog('z', "Zmodem: TIMEOUT");
return TERROR;
}
continue;