diff options
| author | Eric Andersen <andersen@codepoet.org> | 2004-07-30 17:39:08 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2004-07-30 17:39:08 +0000 |
| commit | b737b1a68bf8ab002bb314375ff33c651ee9cdaa (patch) | |
| tree | 66a23af54b43ab5a8723c6fb732345fc283e5d4f | |
| parent | aad29b37a7345207c94e8ef9f0bac943d43dbe12 (diff) | |
| download | busybox-w32-b737b1a68bf8ab002bb314375ff33c651ee9cdaa.tar.gz busybox-w32-b737b1a68bf8ab002bb314375ff33c651ee9cdaa.tar.bz2 busybox-w32-b737b1a68bf8ab002bb314375ff33c651ee9cdaa.zip | |
Umm. Not guilty by reason of insanity.
-Erik
| -rw-r--r-- | loginutils/getty.c | 4 | ||||
| -rw-r--r-- | loginutils/login.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index 2b37136fe..71cadc7ab 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
| @@ -504,7 +504,7 @@ static void update_utmp(char *line) | |||
| 504 | * entry in the utmp file. | 504 | * entry in the utmp file. |
| 505 | */ | 505 | */ |
| 506 | if (access(_PATH_UTMP, R_OK|W_OK) == -1) { | 506 | if (access(_PATH_UTMP, R_OK|W_OK) == -1) { |
| 507 | creat(_PATH_UTMP, O_RDWR); | 507 | creat(_PATH_UTMP, 0664); |
| 508 | } | 508 | } |
| 509 | utmpname(_PATH_UTMP); | 509 | utmpname(_PATH_UTMP); |
| 510 | setutent(); | 510 | setutent(); |
| @@ -535,7 +535,7 @@ static void update_utmp(char *line) | |||
| 535 | 535 | ||
| 536 | { | 536 | { |
| 537 | if (access(_PATH_WTMP, R_OK|W_OK) == -1) { | 537 | if (access(_PATH_WTMP, R_OK|W_OK) == -1) { |
| 538 | creat(_PATH_WTMP, O_RDWR); | 538 | creat(_PATH_WTMP, 0664); |
| 539 | } | 539 | } |
| 540 | updwtmp(_PATH_WTMP, &ut); | 540 | updwtmp(_PATH_WTMP, &ut); |
| 541 | } | 541 | } |
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) | |||
| 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 | creat(_PATH_WTMP, O_RDWR); | 482 | creat(_PATH_WTMP, 0664); |
| 483 | } | 483 | } |
| 484 | updwtmp(_PATH_WTMP, &utent); | 484 | updwtmp(_PATH_WTMP, &utent); |
| 485 | } | 485 | } |
