This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ftp error on cambridge.cygnus.com


Marc Lehmann <pcg@goof.com> writes:

> On Mon, Dec 07, 1998 at 03:18:18PM -0700, Jeffrey A Law wrote:
> > 
> > 
> >   In message <366C4AC2.7FD03F04@netmeg.net>you write:
> >   > i have tried to ftp egcs from the cambridge.cygnus.com site as per your
> >   > download web page.but i continually get a failureto complete the login
> >   > when i use ncftp.
> >   > 
> >   > the reported error is:
> >   > 
> >   > ncftp> open egcs
> >   > Connecting to
> >   > 192.80.44.1...                                                    
> >   > tweedledumb.cygnus.com FTP server (Version 5.60) ready.
> >   > Logging
> >   > in...                                                                   
> >   > Guest login ok, access restrictions apply.
> >   > Logged in to
> >   > cambridge.cygnus.com.                                              
> >   > Could not get remote working directory: server said: .
> >   > 
> >   > can this be fixed so that downloads can be done with a reasonable ftp
> >   > client rather than netscape?
> > If I had a clue what the problem was, then I'd try:
> 
> I guess "pwd" doesn't work (ncftp does this). Are the permissions
> on all paths correct (i.e. rx?)

The permissions are correct, however, the ftpd we're using calls
getcwd, which calls popen("pwd"), which tries to invoke "/bin/sh -c
pwd", and after chroot into ~ftp there is no /bin/sh.

We could use getwd, but it takes no length argument, so we'd have to
check that the SunOS implementation has no buffer overflow problems.
Maybe we can grab the newlib getcwd instead.

Sigh.
For now, yes, just ignore the problem.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]