Menu

#14 wrong Solaris platform recognition

closed
nobody
None
5
2008-03-21
2007-10-11
No

In documentation can be found information that pseudo TTY on Solaris platform is not working very well.
I had tried to use pxssh module on Solaris and had this problem too.

In details:
TTY couldn't be found, so I had a message:
ssh_askpass: exec(/opt/csw/libexec/ssh-askpass): No such file or directory

After some debug I found a bug in Solaris platform recognition. In file pexpect.py there is a line which distinguish between __fork_pty() and pty.fork(). Its base is value of sys.platform, in my case (system details below) this value is not 'solaris' but 'sunos5'.

After this change, module works very well:
self.use_native_pty_fork = (not (sys.platform.lower().find('solaris') >= 0)) and (not (sys.platform.lower().find('sunos') >= 0))

System details:
Python 2.4.2 (#1, Mar 20 2006, 11:47:26)

>>> import sys
>>> print sys.platform
sunos5

SunOS 5.9, the same effect is on SunOS 5.6

Discussion

  • Noah Spurrier

    Noah Spurrier - 2008-03-21

    Logged In: YES
    user_id=59261
    Originator: NO

    Thanks for pointing this out. This should be fixed now.

    Yours,
    Noah

     
  • Noah Spurrier

    Noah Spurrier - 2008-03-21
    • status: open --> closed
     

Log in to post a comment.