qnx ppc port of dropbear

Bill Smith bsmith at tridium.com
Wed Oct 25 20:17:12 WST 2006

> -----Original Message-----
> From: Matt Johnston [mailto:matt at ucc.asn.au] 
> Sent: Thursday, October 19, 2006 10:16 AM
> To: Bill Smith
> Cc: dropbear at ucc.gu.uwa.edu.au
> Subject: Re: qnx ppc port of dropbear
> On Wed, Oct 18, 2006 at 02:20:59PM -0400, Bill Smith wrote:
> > I have (somewhat) successfully ported dropbear to qnx 6.3 for
> > and everything appears to work. However I'm getting some errors that
> > can't quite figure out. Does anybody have any ideas? I believe that 
> > the problems are all related to not properly setting the controlling

> > terminal.
> > 
> > *** messages from server after client authenticates
> > 
> > Oct 18 12:28:45 nto dropbear[1687583-1]: ioctl(TIOCSCTTY): 1, 
> > Operation not permitted Oct 18 12:28:45 nto dropbear[1687583-1]:
> > /dev/tty failed - could not set controlling tty: No such device or 
> > addressrolling tty: No such device or address
> The docs at
> suggest that calling tcsetsid(fd, getpid()) instead of ioctl(fd,
TIOCSCTTY)  should work. The call in Dropbear is located at sshpty line
301 - does
> changing that help? Hopefully the client error messages are just a
side-effect of the server's failure.
> An alternative might be to add "#define HAVE_OPENPTY 1" to config.h,
and "#include <unix.h>" in sshpty.c. I've got no idea if it'll work, I'm
> looking at 
> Cheers,
> Matt

Thx Matt. To get it to work I had to undefine HAVE_OPENPTY  and make
some minor changes to sshpty.c. It seems to work but I'm not sure if
there will be any side effects. I'm going to play with it and see how it
does. If I feel the changes I made are stable I can send you the info so
that QNX could be an additionally supported platform.


More information about the Dropbear mailing list