diff options
Diffstat (limited to 'loginutils/login.c')
-rw-r--r-- | loginutils/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 93d81d3..f5e950f 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); } |