On Sat, 3 Mar 2001, Andrew Morgan wrote: > Yes, this is a known problem. (I recently [months ago] submitted a patch > to openssh to cover this issue - someone 'fixed' the original PAM code > to stop working like the Linux library and start working like the > Solaris one - I explained the difference then, and Damien added some > conditional compilation to cover it.) FYI this is what we use in OpenSSH to cover this: #ifdef PAM_SUN_CODEBASE # define PAM_MSG_MEMBER(msg, n, member) ((*(msg))[(n)].member) #else # define PAM_MSG_MEMBER(msg, n, member) ((msg)[(n)]->member) #endif and then we do switch(PAM_MSG_MEMBER(msg, count, msg_style)) { ... } -d -- | Damien Miller <djm@mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer