Fix text alignment, thanks to Sander Klein <s.klein@quicknet.nl>
This commit is contained in:
parent
7234c3a0b6
commit
549df2ebc3
@ -245,8 +245,7 @@ extern int passwd_main(int argc, char **argv)
|
|||||||
myname);
|
myname);
|
||||||
printf("Password changed.\n");
|
printf("Password changed.\n");
|
||||||
} else {
|
} else {
|
||||||
syslog(LOG_WARNING,
|
syslog(LOG_WARNING, "an error occurred updating the password file");
|
||||||
"an error occurred updating the password file");
|
|
||||||
error_msg_and_die("An error occurred updating the password file.\n");
|
error_msg_and_die("An error occurred updating the password file.\n");
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
@ -357,10 +356,9 @@ static int new_password(const struct passwd *pw, int amroot, int algo)
|
|||||||
} else {
|
} else {
|
||||||
orig[0] = '\0';
|
orig[0] = '\0';
|
||||||
}
|
}
|
||||||
if (!
|
if (! (cp=getpass("Enter the new password (minimum of 5, maximum of 8 characters)\n"
|
||||||
(cp =
|
"Please use a combination of upper and lower case letters and numbers.\n"
|
||||||
getpass ("Enter the new password (minimum of 5, maximum of 8 characters)\n""
|
"Enter new password: ")))
|
||||||
Please use a combination of upper and lower case letters and numbers.\nEnter new password: ")))
|
|
||||||
{
|
{
|
||||||
bzero(orig, sizeof orig);
|
bzero(orig, sizeof orig);
|
||||||
/* return -1; */
|
/* return -1; */
|
||||||
|
Loading…
Reference in New Issue
Block a user