Lines Matching refs:passwd_st
296 struct passwd *pw_ptr1p, passwd_st;
334 passwd_st.pw_passwd = pwdflr; /* bogus password */
335 passwd_st.pw_name = nullstr; /* login name */
336 passwd_st.pw_uid = -1; /* no uid */
337 passwd_st.pw_gid = 1; /* default gid */
338 passwd_st.pw_age = nullstr; /* no aging info. */
339 passwd_st.pw_comment = nullstr; /* no comments */
340 passwd_st.pw_gecos = nullstr; /* no comments */
341 passwd_st.pw_dir = nullstr; /* no default directory */
342 passwd_st.pw_shell = nullstr; /* no default shell */
391 passwd_st.pw_name = optarg;
450 passwd_st.pw_comment = optarg;
451 passwd_st.pw_gecos = optarg;
465 passwd_st.pw_dir = optarg;
475 passwd_st.pw_uid = (uid_t)strtol(optarg, &char_p, 10);
477 (passwd_st.pw_uid < 0) ||
490 passwd_st.pw_gid = (gid_t)strtol(optarg, &char_p, 10);
492 if ((*char_p != '\0') || (passwd_st.pw_gid < 0) ||
508 passwd_st.pw_shell = optarg;
624 passwd_st.pw_name = argv [optind];
632 if ((passwd_st.pw_dir = malloc((size_t)DIR_SIZE)) == NULL)
635 *passwd_st.pw_dir = '\0';
636 (void) strcat(passwd_st.pw_dir, defdir);
637 (void) strcat(passwd_st.pw_dir, lognamp);
851 (pw_ptr1p->pw_uid == passwd_st.pw_uid) &&
861 strcmp(pw_ptr1p->pw_name, passwd_st.pw_name) == 0) {
907 pw_ptr1p->pw_name = passwd_st.pw_name;
910 pw_ptr1p->pw_uid = passwd_st.pw_uid;
913 pw_ptr1p->pw_gid = passwd_st.pw_gid;
917 passwd_st.pw_comment;
920 passwd_st.pw_comment;
924 pw_ptr1p->pw_dir = passwd_st.pw_dir;
927 pw_ptr1p->pw_shell = passwd_st.pw_shell;
980 passwd_st.pw_uid = uid_sp->high + 1;
985 ck_p_sz(&passwd_st); /* Check entry size */
986 if (putpwent(&passwd_st, fp_ptemp)) {