/[inetutils]/inetutils/ftp/ftp.c
ViewVC logotype

Diff of /inetutils/ftp/ftp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by gray, Tue May 14 15:13:56 2002 UTC revision 1.25 by ams, Sat Jan 22 14:53:07 2005 UTC
# Line 778  recvrequest(cmd, local, remote, lmode, p Line 778  recvrequest(cmd, local, remote, lmode, p
778          static char *buf;          static char *buf;
779          long bytes = 0, local_hashbytes = hashbytes;          long bytes = 0, local_hashbytes = hashbytes;
780          struct timeval start, stop;          struct timeval start, stop;
         struct stat st;  
781    
782          is_retr = strcmp(cmd, "RETR") == 0;          is_retr = strcmp(cmd, "RETR") == 0;
783          if (is_retr && verbose && printnames) {          if (is_retr && verbose && printnames) {
# Line 863  recvrequest(cmd, local, remote, lmode, p Line 862  recvrequest(cmd, local, remote, lmode, p
862                  }                  }
863                  closefunc = fclose;                  closefunc = fclose;
864          }          }
865          if (fstat(fileno(fout), &st) < 0 || ST_BLKSIZE(st) == 0)          blksize = BUFSIZ;
                 blksize = BUFSIZ;  
         else  
                 blksize = ST_BLKSIZE(st);  
866          if (blksize > bufsize) {          if (blksize > bufsize) {
867                  if (buf)                  if (buf)
868                          (void) free(buf);                          (void) free(buf);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26