Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-30 21:39:08 +0400
committerEric Andersen <andersen@codepoet.org>2004-07-30 21:39:08 +0400
commitb737b1a68bf8ab002bb314375ff33c651ee9cdaa (patch)
tree66a23af54b43ab5a8723c6fb732345fc283e5d4f /loginutils/login.c
parentaad29b37a7345207c94e8ef9f0bac943d43dbe12 (diff)
Umm. Not guilty by reason of insanity.
-Erik
Diffstat (limited to 'loginutils/login.c')
-rw-r--r--loginutils/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index 93d81d314..f5e950f58 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -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);
}