[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [gftp] SSH2 - Cannot open master pty : Exec format error



On Sun, Jul 25, 2004 at 07:06:33PM +0200, Tomasz Chmielewski wrote:
> OK, this is the output:
> 
> $ gftp --info
> gFTP 2.0.17
> #define _REENTRANT
> #define _LARGEFILE_SOURCE
> #define _FILE_OFFSET_BITS 64
> sizeof (off_t) = 8
> #define HAVE_GETADDRINFO
> #define HAVE_GAI_STRERROR
> #define HAVE_GETDTABLESIZE
> #define G_HAVE_GINT64
> #define HAVE_LIBREADLINE
> #define ENABLE_NLS
> #define HAVE_GETTEXT
> #define HAVE_INTL_PRINTF
> glib version: 2.4.0
> PTY implementation: openpty
> OpenSSL version: 0x90703f
> Enabled protocols: FTP FTPS HTTP HTTPS Local SSH2 Bookmark
> 
> 
> What should I do next?

You have two choices:

  1) Check the permissions of the files /dev/pty* and /dev/tty*
     (more specifically /dev/[pt]ty[pqrstuwxyzabcdePQRST][0123456789abcdef])

  2) You are using BSD style ptys. You can recompile gftp and after you run
     configure, edit config.h and remove the line that has #define HAVE_OPENPTY.
     Make sure that HAVE_GRANTPT is defined. I changed the behavior in CVS so
     that grantpt() takes precedence over openpty()

Brian