diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-08-26 22:26:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-08-26 22:26:26 +0000 |
commit | 713d6e3dd3473e72fe72d42f3f7b8c07b5ed2616 (patch) | |
tree | 4c691d30c0dacf25eba51b55cb2e782bb47d2920 /loginutils/login.c | |
parent | 97a1de10e95c44e1a2cec3c3c4fd8b39d4219318 (diff) | |
download | busybox-w32-713d6e3dd3473e72fe72d42f3f7b8c07b5ed2616.tar.gz busybox-w32-713d6e3dd3473e72fe72d42f3f7b8c07b5ed2616.tar.bz2 busybox-w32-713d6e3dd3473e72fe72d42f3f7b8c07b5ed2616.zip |
Save a line or two
Diffstat (limited to 'loginutils/login.c')
-rw-r--r-- | loginutils/login.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 4786d117d..f3630f102 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -479,8 +479,7 @@ static void setutmp(const char *name, const char *line) | |||
479 | pututline(&utent); | 479 | pututline(&utent); |
480 | endutent(); | 480 | endutent(); |
481 | if (access(_PATH_WTMP, R_OK|W_OK) == -1) { | 481 | if (access(_PATH_WTMP, R_OK|W_OK) == -1) { |
482 | int fd = creat(_PATH_WTMP, 0664); | 482 | close(creat(_PATH_WTMP, 0664)); |
483 | close(fd); | ||
484 | } | 483 | } |
485 | updwtmp(_PATH_WTMP, &utent); | 484 | updwtmp(_PATH_WTMP, &utent); |
486 | } | 485 | } |