mirror of
https://git.busybox.net/busybox
synced 2026-01-26 16:17:50 +00:00
Umm. Not guilty by reason of insanity.
-Erik
This commit is contained in:
parent
aad29b37a7
commit
b737b1a68b
2 changed files with 3 additions and 3 deletions
|
|
@ -504,7 +504,7 @@ static void update_utmp(char *line)
|
|||
* entry in the utmp file.
|
||||
*/
|
||||
if (access(_PATH_UTMP, R_OK|W_OK) == -1) {
|
||||
creat(_PATH_UTMP, O_RDWR);
|
||||
creat(_PATH_UTMP, 0664);
|
||||
}
|
||||
utmpname(_PATH_UTMP);
|
||||
setutent();
|
||||
|
|
@ -535,7 +535,7 @@ static void update_utmp(char *line)
|
|||
|
||||
{
|
||||
if (access(_PATH_WTMP, R_OK|W_OK) == -1) {
|
||||
creat(_PATH_WTMP, O_RDWR);
|
||||
creat(_PATH_WTMP, 0664);
|
||||
}
|
||||
updwtmp(_PATH_WTMP, &ut);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -479,7 +479,7 @@ static void setutmp(const char *name, const char *line)
|
|||
pututline(&utent);
|
||||
endutent();
|
||||
if (access(_PATH_WTMP, R_OK|W_OK) == -1) {
|
||||
creat(_PATH_WTMP, O_RDWR);
|
||||
creat(_PATH_WTMP, 0664);
|
||||
}
|
||||
updwtmp(_PATH_WTMP, &utent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue