diff options
| -rw-r--r-- | libbb/bb_askpass.c | 1 | ||||
| -rw-r--r-- | loginutils/sulogin.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index bdb756659..bf4578050 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c | |||
| @@ -55,7 +55,6 @@ char* FAST_FUNC bb_ask(const int fd, int timeout, const char *prompt) | |||
| 55 | 55 | ||
| 56 | if (!passwd) | 56 | if (!passwd) |
| 57 | passwd = xmalloc(sizeof_passwd); | 57 | passwd = xmalloc(sizeof_passwd); |
| 58 | memset(passwd, 0, sizeof_passwd); | ||
| 59 | ret = passwd; | 58 | ret = passwd; |
| 60 | i = 0; | 59 | i = 0; |
| 61 | while (1) { | 60 | while (1) { |
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 77eff9f8d..6e3d3b019 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
| @@ -51,9 +51,6 @@ 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_ask() already handles this | ||
| 55 | // signal(SIGALRM, catchalarm); | ||
| 56 | |||
| 57 | pwd = getpwuid(0); | 54 | pwd = getpwuid(0); |
| 58 | if (!pwd) { | 55 | if (!pwd) { |
| 59 | goto auth_error; | 56 | goto auth_error; |
