X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=loginutils%2Fpasswd.c;h=c8756211a7fac6467aa4a9a86809afdb4cef61a9;hb=29f9b2fbdbfdd1509aa0a91df70764c72e2b3e54;hp=9c84c167c350e3221d7765548698063947ac6f6c;hpb=27f64e1f4eb4354844f6553e37501deffde8373e;p=oweals%2Fbusybox.git diff --git a/loginutils/passwd.c b/loginutils/passwd.c index 9c84c167c..c8756211a 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -173,7 +173,7 @@ extern int passwd_main(int argc, char **argv) ruid = getuid(); pw = (struct passwd *) getpwuid(ruid); if (!pw) { - error_msg_and_die("Cannot determine your user name.\n"); + error_msg_and_die("Cannot determine your user name."); } myname = (char *) xstrdup(pw->pw_name); if (optind < argc) { @@ -245,8 +245,7 @@ extern int passwd_main(int argc, char **argv) myname); printf("Password changed.\n"); } else { - syslog(LOG_WARNING, - "an error occurred updating the password file"); + syslog(LOG_WARNING, "an error occurred updating the password file"); error_msg_and_die("An error occurred updating the password file.\n"); } return (0); @@ -357,10 +356,9 @@ static int new_password(const struct passwd *pw, int amroot, int algo) } else { orig[0] = '\0'; } - if (! - (cp = - getpass ("Enter the new password (minimum of 5, maximum of 8 characters)\n"" - Please use a combination of upper and lower case letters and numbers.\nEnter new password: "))) + if (! (cp=getpass("Enter the new password (minimum of 5, maximum of 8 characters)\n" + "Please use a combination of upper and lower case letters and numbers.\n" + "Enter new password: "))) { bzero(orig, sizeof orig); /* return -1; */