Subject: 0.0.0.0,20 error

From: Terry Esau <[email-masked]>
Date: Mon, 8 Apr 1996 11:24:53 -0600

Solaris 2.4  gcc 2.7.2

I have had the in.ftpd (bundled with solaris) working fine on my Sparc 10.
So I believe my directory structure and permissions are set correctly.

When I compile wu-ftpd from academ I get no errors during compile.

the ftp works fine until I log in as anonymous. 
when executing the ls command I get this error

Can't create data socket (0.0.0.0,20): Bad file number.

Can someone Please give me some pointers here?

When I compile the wu-ftp from wuarchive I get some errors during compile.

usr/include/arpa/inet.h:46: warning: `struct in_addr' declared inside
parameter list
/usr/include/arpa/inet.h:46: warning: its scope is only this definition or
declaration,
/usr/include/arpa/inet.h:46: warning: which is probably not what you want.
/usr/include/arpa/inet.h:46: warning: parameter has incomplete type
/usr/include/arpa/inet.h:49: warning: parameter has incomplete type
/usr/include/arpa/inet.h:50: warning: parameter has incomplete type

And here is my inet.h file with some comments chopped out.

#ifndef _ARPA_INET_H
#define	_ARPA_INET_H
#pragma ident	"@(#)inet.h	1.8	92/07/14 SMI"	/* SVr4.0 1.1	*/
#ifdef	__cplusplus
extern "C" {
#endif
#ifdef __STDC__
extern unsigned long inet_addr(const char *);
extern char *inet_ntoa(struct in_addr);
extern struct in_addr inet_makeaddr(int, int);
extern unsigned long inet_network(const char *);
extern unsigned long inet_lnaof(struct in_addr);
extern unsigned long inet_netof(struct in_addr);
#else
unsigned long inet_addr();
char	*inet_ntoa();
struct	in_addr inet_makeaddr();
unsigned long inet_network();
extern unsigned long inet_lnaof();
extern unsigned long inet_netof();
#endif
#ifdef	__cplusplus
}
#endif
#endif	/* _ARPA_INET_H */

then it works much the same as the academ version,,  same error
when logged in as anonymous.

Thanks-You
============================================================
= Terry Esau        Main address:       [email-masked] =
= kneehill internet services       http://www.kneehill.com =
========= Linden ====== Alberta ======== Canada ============

---

From: [email-masked]
Date: Tue, 09 Apr 96 08:42:02 0500

See the README file about creating the special character files
~ftp/dev/tcp and ~ftp/dev/zero.  This is probably causing the problem you
report.  You need to execute the appropriate mknod commands for these
files after listing them in /dev.  Also see the original man page for ftpd
in Solaris.  This documents the special files and shared libraries you'll
need to get anonymous to work correctly.  This all owing to the chroot
that is performed for anonymous logins.

Garry Williams
America Net, Inc.

>I have had the in.ftpd (bundled with solaris) working fine on my Sparc
>10. So I believe my directory structure and permissions are set
>correctly.

>/usr/include/arpa/inet.h:46: warning: its scope is only this definition
>or declaration,
>/usr/include/arpa/inet.h:46: warning: which is probably not what you
>want. /usr/include/arpa/inet.h:46: warning: parameter has incomplete type

>then it works much the same as the academ version,,  same error when
>logged in as anonymous.

---

From: [email-masked]
Date: Tue, 09 Apr 96 11:05:22 0500

Oops.  The mention is really in INSTALL in the BETA 10 distribution and it
is item #6.

Garry Williams
America Net, Inc.

>See the README file about creating the special character files
         ~~~~~~  <-------------------Should be "INSTALL"
>files after listing them in /dev.  Also see the original man page for
>ftpd in Solaris.  This documents the special files and shared libraries
>you'll need to get anonymous to work correctly.  This all owing to the
>chroot that is performed for anonymous logins.

>>#ifndef _ARPA_INET_H
>>#define	_ARPA_INET_H
>>#pragma ident	"@(#)inet.h	1.8	92/07/14 SMM