diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-12-03 18:48:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-12-03 18:48:39 +0000 |
commit | 82b142996625d6bf20ee667ce602496cb270fccc (patch) | |
tree | df4be1e1502cdbe3f49bf46c7bd00db764add571 /loginutils/sulogin.c | |
parent | 81c3a1d0b2be02c1d675e6dceb500ce6b3da3282 (diff) | |
download | busybox-w32-82b142996625d6bf20ee667ce602496cb270fccc.tar.gz busybox-w32-82b142996625d6bf20ee667ce602496cb270fccc.tar.bz2 busybox-w32-82b142996625d6bf20ee667ce602496cb270fccc.zip |
- add new applet mkpasswd(1)
function old new delta
bb_ask - 355 +355
mkpasswd_main - 296 +296
.rodata 121746 121847 +101
packed_usage 24632 24689 +57
static.methods - 21 +21
gmatch 229 248 +19
bb_ask_stdin - 11 +11
applet_names 1949 1958 +9
applet_main 1172 1176 +4
sulogin_main 503 505 +2
applet_nameofs 586 588 +2
sha256_hash 329 327 -2
correct_password 208 206 -2
parse_command 1442 1439 -3
get_cred_or_die 145 141 -4
passwd_main 1054 1044 -10
bb_askpass 348 - -348
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 7/5 up/down: 877/-369) Total: 508 bytes
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r-- | loginutils/sulogin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 892c43484..4ffefe933 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -51,7 +51,7 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv) | |||
51 | /* Clear dangerous stuff, set PATH */ | 51 | /* Clear dangerous stuff, set PATH */ |
52 | sanitize_env_if_suid(); | 52 | sanitize_env_if_suid(); |
53 | 53 | ||
54 | // bb_askpass() already handles this | 54 | // bb_ask() already handles this |
55 | // signal(SIGALRM, catchalarm); | 55 | // signal(SIGALRM, catchalarm); |
56 | 56 | ||
57 | pwd = getpwuid(0); | 57 | pwd = getpwuid(0); |
@@ -77,7 +77,7 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv) | |||
77 | int r; | 77 | int r; |
78 | 78 | ||
79 | /* cp points to a static buffer that is zeroed every time */ | 79 | /* cp points to a static buffer that is zeroed every time */ |
80 | cp = bb_askpass(timeout, | 80 | cp = bb_ask(STDIN_FILENO, timeout, |
81 | "Give root password for system maintenance\n" | 81 | "Give root password for system maintenance\n" |
82 | "(or type Control-D for normal startup):"); | 82 | "(or type Control-D for normal startup):"); |
83 | 83 | ||