From 8d07c2e0b42598a3b14b98f1535c606116d5672c Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 8 May 2008 20:05:30 +0000 Subject: 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 --- lib/libftpio/ftpio.c | 1 - 1 file changed, 1 deletion(-) 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) -- cgit v1.1