Several ports fixes
This commit is contained in:
@@ -902,7 +902,7 @@ int hydra_batch(int role, file_list *to_send)
|
||||
} else {
|
||||
if (to_send) {
|
||||
txlen = sprintf(txbuf, "%08lx%08lx%08lx%08lx%08lx",
|
||||
mtime2sl(txstat.st_mtime+(txstat.st_mtime%2)),
|
||||
(long)mtime2sl(txstat.st_mtime+(txstat.st_mtime%2)),
|
||||
(long)(txstat.st_size), 0UL, 0UL, 0UL);
|
||||
|
||||
/*
|
||||
|
@@ -222,7 +222,7 @@ static int sendtfile(char *ln, char *rn)
|
||||
return 0;
|
||||
}
|
||||
|
||||
sprintf(txbuf,"S %s %lu %lu",rn,(unsigned long)st.st_size,st.st_mtime+(st.st_mtime%2));
|
||||
sprintf(txbuf,"S %s %lu %lu",rn,(unsigned long)st.st_size,(unsigned long)st.st_mtime+(st.st_mtime%2));
|
||||
bufl = strlen(txbuf);
|
||||
rc = tcp_sblk(txbuf, bufl, TCP_CMD);
|
||||
rc = tcp_rblk(rxbuf, &bufl);
|
||||
|
@@ -213,7 +213,7 @@ static int sendzfile(char *ln, char *rn)
|
||||
Syslog('+', "Zmodem: size %lu bytes, dated %s", (unsigned long)st.st_size, date(st.st_mtime));
|
||||
gettimeofday(&starttime, &tz);
|
||||
|
||||
sprintf(txbuf,"%s %lu %lo %o 0 0 0", rn,(unsigned long)st.st_size, st.st_mtime+(st.st_mtime%2), st.st_mode);
|
||||
sprintf(txbuf,"%s %lu %lo %o 0 0 0", rn,(unsigned long)st.st_size, (long)st.st_mtime+((long)st.st_mtime%2), st.st_mode);
|
||||
bufl = strlen(txbuf);
|
||||
*(strchr(txbuf,' ')) = '\0'; /*hope no blanks in filename*/
|
||||
|
||||
|
Reference in New Issue
Block a user