Lines Matching refs:pwent
973 struct passwd pwstorage, *pwent = NULL; in add_user() local
1008 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in add_user()
1009 if (retval != 0 || pwent == NULL) { in add_user()
1020 int len = strlen(pwent->pw_dir) -1; in add_user()
1021 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in add_user()
1022 pwent->pw_dir[len] = '\0'; in add_user()
1025 if (strcmp(pwent->pw_dir, "/") == 0) { in add_user()
1033 if (ignore(pwent->pw_dir)) { in add_user()
1038 len = snprintf(uid, sizeof(uid), "%u", pwent->pw_uid); in add_user()
1043 len = snprintf(gid, sizeof(gid), "%u", pwent->pw_gid); in add_user()
1049 pwent->pw_dir, level, selogin, homedir_role); in add_user()