Home | History | Annotate | Download | only in chpass

Lines Matching refs:pw

66 static char tempname[] = "/tmp/pw.XXXXXX";
84 struct passwd *pw, lpw, old_pw;
92 pw = NULL; /* XXX gcc -Wuninitialized */
158 pw = getpwnam(username);
160 pw = getpwuid(uid);
161 if (pw != NULL)
187 pw = getpwnam(username);
188 if (pw == NULL)
190 if (uid && uid != pw->pw_uid)
193 pw = getpwuid(uid);
194 if (pw == NULL)
199 old_pw = *pw;
211 if (p_shell(arg, pw, NULL))
218 pw = &lpw;
219 if (!pw_scan(arg, pw, NULL))
240 display(tempname, dfd, pw);
241 edit(tempname, pw);
246 if (pw_yp(pw, uid))
280 /* Copy the passwd file to the lock file, updating pw. */
281 pw_copy(pfd, tfd, pw, (op == LOADENTRY) ? NULL : &old_pw);