summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-05-08 20:05:30 +0000
committerjhb <jhb@FreeBSD.org>2008-05-08 20:05:30 +0000
commit8d07c2e0b42598a3b14b98f1535c606116d5672c (patch)
tree586664cea0511e26cf15d970993a6e90c1cef7a3
parent1bdc8efe1532fb47d452acdf221653403243b1f7 (diff)
downloadFreeBSD-src-8d07c2e0b42598a3b14b98f1535c606116d5672c.zip
FreeBSD-src-8d07c2e0b42598a3b14b98f1535c606116d5672c.tar.gz
Don't set the _file member of the FILE when opening a FTP connection.
Nothing in libftpio uses _file, and the only consumer in the tree (sysinstall) doesn't invoke fileno() on the FILE. MFC after: 2 months
-rw-r--r--lib/libftpio/ftpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.c b/lib/libftpio/ftpio.c
index f990d4d..a5c9343 100644
--- a/lib/libftpio/ftpio.c
+++ b/lib/libftpio/ftpio.c
@@ -292,7 +292,6 @@ ftpLoginAf(char *host, int af, char *user, char *passwd, int port, int verbose,
fp = NULL;
if (n && ftp_login_session(n, host, af, user, passwd, port, verbose) == SUCCESS) {
fp = funopen(n, ftp_read_method, ftp_write_method, NULL, ftp_close_method); /* BSD 4.4 function! */
- fp->_file = n->fd_ctrl;
}
if (retcode) {
if (!n)
OpenPOWER on IntegriCloud