Lines Matching defs:newp
17 char *newp = NULL;
38 newp = bb_ask_stdin("New password: "); /* returns ptr to static */
39 if (!newp)
41 newp = xstrdup(newp); /* we are going to bb_ask_stdin() again, so save it */
43 && obscure(orig, newp, pw) && myuid)
49 if (strcmp(cp, newp)) {
60 ret = pw_encrypt(newp, salt, 1);
66 nuke_str(newp);
67 if (ENABLE_FEATURE_CLEAN_UP) free(newp);
90 char *newp;
152 newp = NULL;
161 newp = new_password(pw, myuid, opt & STATE_ALGO_md5);
162 if (!newp) {
168 newp = xasprintf("!%s", pw->pw_passwd);
173 newp = xstrdup(&pw->pw_passwd[1]);
175 //newp = xstrdup("");
176 newp = (char*)"";
191 rc = update_passwd(bb_path_shadow_file, name, newp, NULL);
196 rc = update_passwd(bb_path_passwd_file, name, newp, NULL);
204 //if (ENABLE_FEATURE_CLEAN_UP) free(newp);
206 if (!newp) {