Bug 18 - Using ssh -f -L bombs on SCO Openserver 5.0.5
Summary: Using ssh -f -L bombs on SCO Openserver 5.0.5
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: All Other
: P2 trivial
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-15 03:36 AEDT by Mike Kenyon
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kenyon 2001-11-15 03:36:24 AEDT
(SCO Openserver 5.0.5, gcc 2.7.2.3, OpenSSL 0.9.6a)

When ssh is run as the following:

ssh -f -L 4000:localhost:110 localhost 'sleep 10'

is bombs with the following message:

select: Invalid argument

If the -f is dropped then ssh works fine, however (as expected) it doesn't fork into the background. This is part of testing a secure POP3 link 
between two SCO Openserver 5.0.5 machines over the Internet. This is a minor bug (if indeed it is a bug) which I can probably work around 
by mucking around with inetd. Also, problems with open source software on this platform are not unusual!
Comment 1 Sam Vaughan 2001-12-13 08:17:29 AEDT
This seems to be fixed in Openserver 5.0.6. The above command runs as expected.
So something has changed between 5.0.5 and 5.0.6 in the way select has been 
implemented in SCO. 

The only thing I found, so far, is in patch 5.0.6a for 5.0.6 systems.

"As of Release Supplement 506A for OpenServer Release 5.0.6, a subset of APIs 
that use the kernel clock have been modified to utilize the high-precision 
clock.  These are:

    select(S) has microsecond precision, adjusted for kernel entry and exit
              times, time-sharing delays, and so forth."

Could this be the change? 

I traced the error on 5.0.5 to the select statement in the function
client_wait_until_can_do_something in file clientloop.c 

When I get more time, I will look into this further. 
Comment 2 Kevin Steves 2002-01-06 12:30:51 AEDT
thanks, will close at this time.
Comment 3 Damien Miller 2004-04-14 12:24:17 AEST
Mass change of RESOLVED bugs to CLOSED