Problem
I have compiled my application on UnixWare 7.1.4 and am now trying to run it on OpenServer 5.0.7. I am using calls like getlogin(S), getlogin_r(S) and cuserid(S) to get user data but no date or incorrect data is being returned when run on OpenServer 5.0.7.
Running the same binary on UnixWare 7.1.4 does not exhibit this problem.
Cause
In UDK binary, all three functions read /var/adm/utmpx in 372 byte chunks, which is the sizeof(utmpx) in udk mode. The problem is that /var/tmp/utmpx is written in 368 byte chunks which is the sizeof(utmpx) in osr mode.
Solution
To solve the problem install the latest UDK Compatibility Module for OpenServer 5.0.7. This can be downloaded from:
http://www.sco.com/support/update/download/release.php?rid=273