From d72c82f4d18e2bbf29a09693152a8e3d89fa7b5f Mon Sep 17 00:00:00 2001 From: Shigeki Morishima Date: Wed, 21 Jul 2021 11:04:32 +0900 Subject: [PATCH] sulogin: Display all kinds of errno during password input. If some error happens during password input, all kinds of errno will be displayed for investigation of the problem. Signed-off-by: Shigeki Morishima --- login-utils/sulogin.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index 0559eebc5f..227826ffcf 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -712,14 +712,11 @@ static char *getpasswd(struct console *con) switch (errno) { case EIO: con->flags |= CON_EIO; - case ESRCH: - case EINVAL: - case ENOENT: - case 0: - break; default: warn(_("cannot read %s"), con->tty); break; + case 0: + break; } goto quit; } -- 2.47.3