summaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
authorEric Andersen2004-07-30 17:39:08 +0000
committerEric Andersen2004-07-30 17:39:08 +0000
commitb737b1a68bf8ab002bb314375ff33c651ee9cdaa (patch)
tree66a23af54b43ab5a8723c6fb732345fc283e5d4f /loginutils/getty.c
parentaad29b37a7345207c94e8ef9f0bac943d43dbe12 (diff)
downloadbusybox-b737b1a68bf8ab002bb314375ff33c651ee9cdaa.zip
busybox-b737b1a68bf8ab002bb314375ff33c651ee9cdaa.tar.gz
Umm. Not guilty by reason of insanity.
-Erik
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 2b37136..71cadc7 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -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);
}