Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!Germany.EU.net!mamunx!dmupc.werries.de!dierk From: dierk@dmubsd.dmupc.werries.de (Dierk Mueller) Subject: Re: Wu-ftp closing connections after one file transfer X-Newsreader: TIN [version 1.2 PL2] Reply-To: dierk@mamunx.garmhausen.de Sender: news@dmupc.werries.de (News Owner) Message-ID: <MUPWBJ6E@dmupc.werries.de> References: <3g8sm9$q9k@magus.cs.utah.edu> Date: Fri, 27 Jan 1995 22:33:12 GMT Lines: 58 travis jensen (jensen@lal.cs.utah.edu) wrote: > I am in the process of setting up a FreeBSD system for use > as a WEB/FTP server. I have upgraded to wu-ftpd 2.4 with > the patches available on ftp.cdrom.com. > I can transfer one file fine. However, when I try to execute > the next command, I get a message saying that the service > is not available and that the remote host has closed the > connection. The off_t changes are challenging in some sprintf format strings. I 've seen this in several other packages. Use -Wall -pedantic with gcc and take a careful look at every warning. This patch should help. *** ftpd.c Fri Jan 27 23:07:42 1995 --- ftpd.c.00 Fri Jan 27 23:07:33 1995 *************** *** 1422,1428 **** for (loop = 0; namebuf[loop]; loop++) if (isspace(namebuf[loop]) || iscntrl(namebuf[loop])) namebuf[loop] = '_'; ! sprintf(msg, "%.24s %d %s %qd %s %c %s %c %c %s ftp %d %s\n", ctime(&curtime), xfertime, remotehost, --- 1422,1428 ---- for (loop = 0; namebuf[loop]; loop++) if (isspace(namebuf[loop]) || iscntrl(namebuf[loop])) namebuf[loop] = '_'; ! sprintf(msg, "%.24s %d %s %d %s %c %s %c %c %s ftp %d %s\n", ctime(&curtime), xfertime, remotehost, *************** *** 1610,1616 **** for (loop = 0; namebuf[loop]; loop++) if (isspace(namebuf[loop]) || iscntrl(namebuf[loop])) namebuf[loop] = '_'; ! sprintf(msg, "%.24s %d %s %qd %s %c %s %c %c %s ftp %d %s\n", ctime(&curtime), xfertime, remotehost, --- 1610,1616 ---- for (loop = 0; namebuf[loop]; loop++) if (isspace(namebuf[loop]) || iscntrl(namebuf[loop])) namebuf[loop] = '_'; ! sprintf(msg, "%.24s %d %s %d %s %c %s %c %c %s ftp %d %s\n", ctime(&curtime), xfertime, remotehost, -- Dierk Mueller ! dierk@dmupc.werries.de Alter Muehlenweg 63/65, 44139 Dortmund ! Voice @ Federal Republic of Germany ! +49-231-101621 or +49-231-50-20926