2.1.1p2 HP-UX 11 timing error

Marquess, Steve Mr JMLFDC Steve.Marquess at DET.AMEDD.ARMY.MIL
Fri Jul 7 00:06:53 EST 2000


FYI in order to get 2.1.1p2 to work on my HP-UX 11.0 systems I had to patch
atomicio.c for EWOULDBLOCK (HP read() does not give the POSIX return code).
The new atomicio() is a clean fix for this timing problem; all it needs now
is this one little tweak.

Also had the "General Commercial Security" error (PAM_TERM_ERROR from
pam_acct_mgmt()) which I have very crudely addressed for now by hacking out
that check entirely.

*** atomicio.c	Thu Jun 22 07:32:31 2000
--- /tmp/atomicio.c	Thu Jul  6 09:03:30 2000
***************
*** 46,52 ****
  		res = (f) (fd, s + pos, n - pos);
  		switch (res) {
  		case -1:
! 			if (errno == EINTR || errno == EAGAIN)
  				continue;
  		case 0:
  			return (res);
--- 46,56 ----
  		res = (f) (fd, s + pos, n - pos);
  		switch (res) {
  		case -1:
! 			if (errno == EINTR || errno == EAGAIN
! #ifdef _HPUX_SOURCE
! 			|| (errno == EWOULDBLOCK)
! #endif
! 			)
  				continue;
  		case 0:
  			return (res);




Steve Marquess          301-663-1770 x238 / 301-619-3933 voice
DMLSS Technical Manager	DSN 343-3933
JMLFDC			301-663-6788 / 301-619-7831 fax
623 Porter Street		steve.marquess at amedd.army.mil
Ft. Detrick, MD  21702-5018





More information about the openssh-unix-dev mailing list