diff options
author | jkh <jkh@FreeBSD.org> | 1995-08-01 07:16:51 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-08-01 07:16:51 +0000 |
commit | a83c6fddeebd741c10803be7361789081447a0d5 (patch) | |
tree | f082f0177f78ff9618fabf93187b3e26fd9c9ed0 /usr.sbin/pkg_install/lib | |
parent | 510c48b3317bd9a884852325a42a2a7cab9922e6 (diff) | |
download | FreeBSD-src-a83c6fddeebd741c10803be7361789081447a0d5.zip FreeBSD-src-a83c6fddeebd741c10803be7361789081447a0d5.tar.gz |
Argh! I hate my life! I can't seem to do anything right here today.
This should restore functionality to the pkg_install suite.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_install/lib/ftp.c | 11 |
2 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 21f40e4..70307de 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: file.c,v 1.13 1995/07/30 09:33:26 jkh Exp $"; +static const char *rcsid = "$Id: file.c,v 1.14 1995/07/30 09:41:21 jkh Exp $"; #endif /* @@ -239,7 +239,7 @@ fileGetURL(char *fname) } while (read(fd, &ch, 1) == 1) write(fd, &ch, 1); - FtpEof(ftp); + FtpEOF(ftp); FtpClose(ftp); return tmpl; } diff --git a/usr.sbin/pkg_install/lib/ftp.c b/usr.sbin/pkg_install/lib/ftp.c index 192d4b7..7b78ee4 100644 --- a/usr.sbin/pkg_install/lib/ftp.c +++ b/usr.sbin/pkg_install/lib/ftp.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: ftp.c,v 1.1 1995/07/30 09:33:29 jkh Exp $ + * $Id: ftp.c,v 1.2 1995/07/31 02:27:58 jkh Exp $ * * Return values have been sanitized: * -1 error, but you (still) have a session. @@ -112,8 +112,7 @@ zap(FTP_t ftp) int i; i = writes(ftp->fd_ctrl,"QUIT\r\n"); - if (isDebug()) - msgDebug("Zapping ftp connection on %d returns %d\n", ftp->fd_ctrl, i); + debug(ftp, "Zapping ftp connection on %d returns %d\n", ftp->fd_ctrl, i); close(ftp->fd_ctrl); ftp->fd_ctrl = -1; close(ftp->fd_xfer); ftp->fd_xfer = -1; ftp->state = init; @@ -323,8 +322,7 @@ FtpGet(FTP_t ftp, char *file) return zap(ftp); } else if (i > 299) { - if (isDebug()) - msgDebug("FTP: No such file %s, moving on.\n", file); + debug(ftp, "FTP: No such file %s, moving on.\n", file); close(s); return -1; } @@ -362,8 +360,7 @@ FtpGet(FTP_t ftp, char *file) return zap(ftp); } else if (i > 299) { - if (isDebug()) - msgDebug("FTP: No such file %s, moving on.\n", file); + debug(ftp, "FTP: No such file %s, moving on.\n", file); close(s); return -1; } |