Skip Menu |
 

To: krb5-bugs@mit.edu
Subject: Typo in chpw.c release krb5-1.12.1
From: Lorraine Gray <lgray@us.ibm.com>
Date: Mon, 31 Mar 2014 11:19:53 -0400
Download (untitled)
image/gif 1.3KiB
(untitled)
Download (untitled) / with headers
text/plain 1.4KiB
In file:

I believe that the following is a typo and the upper case 'N' in Ngettext (see context below, around line 444) should be a lower case 'n' (i.e. ngettext as I corrected in the code)

    if (policy.min_length_password > 0) {
        add_spaces(&buf);

        // LGray Netezza/IBM corrected typo in next line which had uppercase N for ngettext call
        k5_buf_add_fmt(&buf, ngettext ("The password must contain at least %d "
                                      "character.",
                                      "The password must contain at least %d "
                                      "characters.",
                                      policy.min_length_password),
                       policy.min_length_password);
    }
    if (policy.password_history) {
        add_spaces(&buf);
        k5_buf_add_fmt(&buf, ngettext("The password must be different from "
                                      "the previous password.",
                                      "The password must be different from "
                                      "the previous %d passwords.",
                                      policy.password_history),
                       policy.password_history);
    }


Lorraine Gray
Advisory SW Engineer
IBM Software Group, Information Management

Phone: 1-508-382-4133    Netezza, an IBM company
Fax: 1-508-382-8300  26 Forest St
E-Mail: lgray@us.ibm.com  Marlborough, MA 01752
 USA


I don't see the string "Ngettext" (with a capital N) in chpw.c, or
anywhere in the contents of the krb5-1.12.1 tar file.