Lines Matching defs:pw
64 free_pwd(struct passwd *pw)
66 if (pw->pw_name) free(pw->pw_name);
67 if (pw->pw_passwd) free(pw->pw_passwd);
68 if (pw->pw_gecos) free(pw->pw_gecos);
69 if (pw->pw_dir) free(pw->pw_dir);
70 if (pw->pw_shell) free(pw->pw_shell);
71 free(pw);
238 struct passwd pw;
240 if (getpwuid_r(getuid(), &pw, pwbuf, sizeof (pwbuf)) != NULL) {
243 if (chkauthattr(ACCOUNT_ACTIVATE_AUTH, pw.pw_name) ||
244 chkauthattr(ACCOUNT_SETPOLICY_AUTH, pw.pw_name) ||
245 chkauthattr(USER_MANAGE_AUTH, pw.pw_name) ||
246 chkauthattr(ROLE_MANAGE_AUTH, pw.pw_name) ||
247 chkauthattr(PASSWD_ASSIGN_AUTH, pw.pw_name)) {