> Hi
> When I try to run "ip/ftpd", I get the message "ip/ftpd: ftpd needs a
> network address".
> What does this mean? I have a valid internet connection; is this just
> happening because I'm not running ftpd from cpurc?
> What's up?

This is the source:

        /* find out who is calling */
        if(argc < 1)
                nci = getnetconninfo(nil, 0);
        else
                nci = getnetconninfo(argv[argc-1], 0);
        if(nci == nil)
                sysfatal("ftpd needs a network address");


getnetconninfo() returns nil on various locations, but as you mentioned cpurc, 

        if(dir == nil || *dir == 0){
                if(fd2path(fd, path, sizeof(path)) < 0)
                        return nil;



fd2path(2): 
          Changes to the underlying name space do not update the path
          name stored with the file descriptor.  Therefore, the path
          returned by fd2path may no longer refer to the same file (or
          indeed any file) after some component directory or file in
          the path has been removed, renamed or rebound.

So you don't start ftpd with extra parameters I assume, so where is ftpd 
started (path-wise, ns-wise, term/cpurc-wise...)?

Just guessing,

Sascha

> Thanks
> 
> 
> John Floren
> -- 
> "The first thing we do, let's kill all the lawyers" -- Shakespeare, Henry VI

Reply via email to