This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: utmp database manipulations patch
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 6 Nov 2002 21:21:44 -0500
- Subject: Re: utmp database manipulations patch
- References: <00ba01c285e4$620b2350$0201a8c0@sos>
- Reply-to: cygwin-patches at cygwin dot com
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.
cgf