On Wed, Aug 16, 2000 at 02:56:54AM -0400, Network wrote: > > > Inetd is disabled with .. inetd_enable="NO" > > I cannot start ftpd from the cmd line using; /usr/libexec/ftpd -D -S -l -a > xxx.xxx.xx.xx -OR- /usr/libexec/ftpd -D -a xxx.xxx.xx.xx > > Error= Aug 16 01:19:52 The-Raven ftpd[988]: getpeername (/usr/libexec/ftpd): > Socket operation > Aug 16 01:23:28 The-Raven ftpd[1007]: control socket: Protocol not > supported > > The first error line has never showed itself again. The second error line > happens on both of my 4.1-stable machines. > > At the time of this writing I wasn't able to search the mail list for > possible fixes or answers. > I have just fixed that in CURRENT. Please try the following patch, it should apply cleanly to your 4.1-STABLE sources. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age
Index: ftpd.c =================================================================== RCS file: /home/ncvs/src/libexec/ftpd/ftpd.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -p -r1.65 -r1.66 --- ftpd.c 2000/08/01 13:58:55 1.65 +++ ftpd.c 2000/08/16 09:12:33 1.66 @@ -408,8 +408,6 @@ main(argc, argv, envp) error = getaddrinfo(bindname, "ftp", &hints, &res); } - if (error == 0 && res->ai_addr != NULL) - family = res->ai_addr->sa_family; } if (error) { syslog(LOG_ERR, gai_strerror(error)); @@ -420,7 +418,8 @@ main(argc, argv, envp) if (res->ai_addr == NULL) { syslog(LOG_ERR, "-a %s: getaddrinfo failed", hostname); exit(1); - } + } else + family = res->ai_addr->sa_family; /* * Open a socket, bind it to the FTP port, and start * listening.