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]

utmp


Chris,

Here is GetComputerName replacing cygwin_gethostname.
When testing I found an old bug: ut_id wasn't set although 
login() uses it in getutid(), called from pututline().

utmp is now closed with endutent() (that's what sshd does too)
and I optimized setutent.

Please review & apply.

Pierre


2003-03-07  Pierre Humblet  <pierre dot humblet at ieee dot org>

	* tty.cc (create_tty_master): Call GetComputerName instead of
	cygwin_gethostname. Set ut_id.
	* syscalls.cc (login): Call endutent.
	(setutent): Do not seek after a fresh open.

Attachment: utmp.diff
Description: Text document


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