lckpwdf creates /etc/.pwd.lock + ulckpwdf fails to remove /etc/.pwd.lock
Bug #1252292 reported by
David Favor
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
For the simple program...
#include <stdio.h>
#include <shadow.h>
int main (void) {
int status = lckpwdf();
status = ulckpwdf();
return status;
}
gcc -o simple simple.c
strace ./simple 2>&1 | egrep 'pwd|lckpwdf|
open("/
It appears the macro lckpwdf creates /etc/.pwd.lock + macro ulckpwdf fails to delete this file.
So running a program like vipw creates both /etc/.pwd.lock + /etc/passwd.lock files or
vigr creates both /etc/.pwd.lock + /etc/group.log and in both cases after vipw or vigr
exit /etc/.pwd.lock remains.
To post a comment you must log in.
-rw------- 1 root root 0 Aug 23 2012 /etc/.pwd.lock