Lines Matching defs:pw
151 struct passwd *pw;
167 pw = getpwuid(RealUid);
168 if (pw != NULL)
170 if (strlen(pw->pw_name) > MAXNAME - 1)
171 pw->pw_name[MAXNAME] = '\0';
172 sm_snprintf(rnamebuf, sizeof rnamebuf, "%s", pw->pw_name);
296 if ((pw = getpwuid(getuid())) == NULL)
302 name = strdup(pw->pw_name);
303 user_info.smdbu_id = pw->pw_uid;
304 user_info.smdbu_group_id = pw->pw_gid;
305 (void) sm_strlcpy(user_info.smdbu_name, pw->pw_name,
307 if (chdir(pw->pw_dir) != 0)
311 pw->pw_dir);
324 user_info.smdbu_id = pw->pw_uid;
325 user_info.smdbu_group_id = pw->pw_gid;
326 (void) sm_strlcpy(user_info.smdbu_name, pw->pw_name,
337 mbdbname.opt_val = "pw";