From: Shigeki Morishima Date: Wed, 21 Jul 2021 02:04:32 +0000 (+0900) Subject: sulogin: Display all kinds of errno during password input. X-Git-Tag: v2.38-rc1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d72c82f4d18e2bbf29a09693152a8e3d89fa7b5f;p=thirdparty%2Futil-linux.git 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 --- 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; }