]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: fix error message
authorKarel Zak <kzak@redhat.com>
Tue, 29 Oct 2019 09:04:29 +0000 (10:04 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Oct 2019 09:04:29 +0000 (10:04 +0100)
Reported-by: Pedro Albuquerque <palbuquerque73@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c

index 93ca0c2c50417ebeaac0811b46ebe89f8c73b1e6..9bf0971b299444efac408ad5a7eff248f42f1082 100644 (file)
@@ -758,7 +758,7 @@ static void init_groups(struct su_context *su, gid_t *groups, size_t ngroups)
 
        rc = pam_setcred(su->pamh, PAM_ESTABLISH_CRED);
        if (is_pam_failure(rc))
-               errx(EXIT_FAILURE, _("failed to user credentials: %s"),
+               errx(EXIT_FAILURE, _("failed to establish user credentials: %s"),
                                        pam_strerror(su->pamh, rc));
        su->pam_has_cred = 1;
 }