This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6634] pututline_file() corrupts utmp file when internal_getut_r() returns -1 due to LOCK_FILE timeout.
- From: "halesh dot s at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Jun 2008 07:22:40 -0000
- Subject: [Bug libc/6634] pututline_file() corrupts utmp file when internal_getut_r() returns -1 due to LOCK_FILE timeout.
- References: <20080611211932.6634.rsa@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From halesh dot s at gmail dot com 2008-06-27 07:22 -------
(In reply to comment #2)
> Created an attachment (id=2802)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2802&action=view)
> Patch for the pututline() for fcntl() lock time out
>
>
> After applaying the attached patch..
>
> who o/p Before Executing tests
> ==============================
> $who ./utmp
> chill tty1 May 15 18:53
> halesh pts/4 Jun 20 13:00 (43.88.101.161)
>
>
> who o/p After executing tests
> =============================
> $who ./utmp
> chill tty1 May 15 18:53
> halesh pts/4 Jun 20 13:00
Last part of who(1) o/p of second entry got missed while copying in text box...
who o/p After Executing tests
==============================
$who ./utmp
chill tty1 May 15 18:53
halesh pts/4 Jun 20 13:00 (43.88.101.161)
>
> I have tested regression tests for adding new entry and replacing entries
using
> pututline() with patch and wroking fine.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6634
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.