diff options
author | Karel Zak | 2019-03-25 16:39:43 +0100 |
---|---|---|
committer | Karel Zak | 2019-03-25 16:39:43 +0100 |
commit | 99c1ebee2106bb72d0fd6908bd47eb3f5334ae96 (patch) | |
tree | ae2db7a5700b0551411ca2bb455abe022c2a2ea0 /login-utils | |
parent | taskset: fix cpuset list parser (diff) | |
download | kernel-qcow2-util-linux-99c1ebee2106bb72d0fd6908bd47eb3f5334ae96.tar.gz kernel-qcow2-util-linux-99c1ebee2106bb72d0fd6908bd47eb3f5334ae96.tar.xz kernel-qcow2-util-linux-99c1ebee2106bb72d0fd6908bd47eb3f5334ae96.zip |
su: change error message
We use PAM and if pam_strerror() returns nothing we have no clue why
authentication failed. It's mistake to blame incorrect password if
there are many possible reason...
Addresses: https://github.com/karelzak/util-linux/issues/778
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/su-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/su-common.c b/login-utils/su-common.c index 1662d21bb..94289898d 100644 --- a/login-utils/su-common.c +++ b/login-utils/su-common.c @@ -734,7 +734,7 @@ static void supam_authenticate(struct su_context *su) msg = pam_strerror(su->pamh, rc); pam_end(su->pamh, rc); sleep(getlogindefs_num("FAIL_DELAY", 1)); - errx(EXIT_FAILURE, "%s", msg ? msg : _("incorrect password")); + errx(EXIT_FAILURE, "%s", msg ? msg : _("authentication failed")); } } |