=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/usr.bin/ftp/fetch.c 1998/09/30 07:49:36 1.23 --- src/usr.bin/ftp/fetch.c 1999/02/09 03:43:48 1.24 *************** *** 1,4 **** ! /* $OpenBSD: fetch.c,v 1.23 1998/09/30 07:49:36 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: fetch.c,v 1.24 1999/02/09 03:43:48 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- *************** *** 38,44 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: fetch.c,v 1.23 1998/09/30 07:49:36 deraadt Exp $"; #endif /* not lint */ /* --- 38,44 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: fetch.c,v 1.24 1999/02/09 03:43:48 deraadt Exp $"; #endif /* not lint */ /* *************** *** 474,479 **** --- 474,485 ---- goto cleanup_url_get; } progressmeter(1); + if (filesize != -1 && len == 0 && bytes != filesize) { + if (verbose) + fputs("Read short file.\n", ttyout); + goto cleanup_url_get; + } + if (verbose) fputs("Successfully retrieved file.\n", ttyout); (void)signal(SIGINT, oldintr);