This is the mail archive of the
mailing list for the Cygwin project.
Re: On "write" command
On 31/01/2011 11:49, Corinna Vinschen wrote:
> The utmp file is in the old utmp format for backward compatibility. The
> utx functions are available and return a ut_tv field, but it's just
> extracted from the utmp ut_time field at function call time. The right
> thing to do for write is to have a autoconf test for the ut_tv field
> and not using it, if it's not available.
Nah, I was mistaken. It actually works fine as-is. I was fooled by the way
old utmp entries get the first char of the username NULled out into thinking
it was getting bad data, but a quick login convinced me that write actually
works just fine and all the util-linux maintainer needs do is add the
configure option to enable building it.
I still think that utmp_data macro is going to return
&utmp_data_buf[nutdbuf] at some point, though. Shouldn't it be "if (utix >=
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple