This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: utmp database manipulations patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]