diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /loginutils/sulogin.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2 busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip |
Major coreutils update.
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r-- | loginutils/sulogin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index a654ffb89..bb4716e0d 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -117,9 +117,9 @@ extern int sulogin_main(int argc, char **argv) | |||
117 | } | 117 | } |
118 | } | 118 | } |
119 | } | 119 | } |
120 | if (access(passwd_file, 0) == -1) { | 120 | if (access(bb_path_passwd_file, 0) == -1) { |
121 | syslog(LOG_WARNING, "No password file\n"); | 121 | syslog(LOG_WARNING, "No password file\n"); |
122 | error_msg_and_die("No password file\n"); | 122 | bb_error_msg_and_die("No password file\n"); |
123 | } | 123 | } |
124 | if (!isatty(0) || !isatty(1) || !isatty(2)) { | 124 | if (!isatty(0) || !isatty(1) || !isatty(2)) { |
125 | exit(EXIT_FAILURE); | 125 | exit(EXIT_FAILURE); |
@@ -135,7 +135,7 @@ extern int sulogin_main(int argc, char **argv) | |||
135 | alarm(timeout); | 135 | alarm(timeout); |
136 | if (!(pwd = getpwnam(name))) { | 136 | if (!(pwd = getpwnam(name))) { |
137 | syslog(LOG_WARNING, "No password entry for `root'\n"); | 137 | syslog(LOG_WARNING, "No password entry for `root'\n"); |
138 | error_msg_and_die("No password entry for `root'\n"); | 138 | bb_error_msg_and_die("No password entry for `root'\n"); |
139 | } | 139 | } |
140 | pwent = *pwd; | 140 | pwent = *pwd; |
141 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS | 141 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS |