Summary: | utmp corruption with agetty | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gil Kloepfer <gbz> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Proposed patch to be added to port to address problem |
Description
Gil Kloepfer
2007-05-20 19:25:06 UTC
Updated summary to more accurately describe actual problem. Created attachment 120046 [details, diff]
Proposed patch to be added to port to address problem
The attached patch will add a patch to the port to agetty (login-utils 2.12r-r6) to fix the problem, assuming that agetty's usage of pututline() is actually incorrect. This simply adds a 'setutent()' call before the pututline(&ut); to assure that the utmp file is rewound before searching for and (over)writing the utmp record.
After further work with the fix I provided, I discovered that the problem is not due to problems with agetty, and the analysis of the problem I reported was incorrect. There is a problem involving utmp, but the problem is not with agetty, but rather a race condition in init. This bug should be reopened (after I first check to make sure that I didn't make the same mistakes as I did in this report) as a bug in init rather than in agetty. |