utmp database manipulations patch

Christopher Faylor cgf@redhat.com
Wed Nov 6 18:19:00 GMT 2002

On Wed, Nov 06, 2002 at 05:32:23PM -0500, Sergey Okhapkin wrote:
>The patch fixes some bugs in utmp database support and provides a new
>pututline() call.
>2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
>        * cygwin.din (pututline): new exported function.
>        * syscalls.cc (login): Use pututiline().
>          (setutent): Open utmp as read/write.
>          (endutent): Check if utmp file is open.
>          (utmpname): call endutent() to close current utmp file.
>          (getutid): Enable all cases, use strncmp() to compare ut_id fields.
>          (pututline): New.
>        * tty.cc (create_tty_master): Set ut_pid to current pid.

Looks good to me.

I've checked this in, along with reformatting the ChangeLog and bumping
the API minor version number.


More information about the Cygwin-patches mailing list