Home
last modified time | relevance | path

Searched refs:pstruct (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/oamuser/user/
H A Duserdel.c72 struct passwd *pstruct; in main() local
115 pstruct = getpwnam(logname); in main()
125 while ((pstruct = fgetpwent(pwf)) != NULL) in main()
126 if (strcmp(pstruct->pw_name, logname) == 0) in main()
132 if (pstruct == NULL) { in main()
157 if (stat(pstruct->pw_dir, &statbuf)) { in main()
163 if (check_perm(statbuf, pstruct->pw_uid, pstruct->pw_gid, in main()
165 errmsg(M_NO_PERM, logname, pstruct->pw_dir); in main()
170 if (rm_files(pstruct->pw_dir, logname, zfs_flags) != EX_SUCCESS) in main()
206 errmsg(M_UID_USED, pstruct->pw_uid); in main()
H A Dusermod.c359 pstruct = passwd_cpmalloc(pw);
415 if (uid != pstruct->pw_uid) {
441 } else uid = pstruct->pw_uid;
468 gid = pstruct->pw_gid;
471 if (gid != pstruct->pw_gid)
475 } else gid = pstruct->pw_gid;
494 if (strcmp(pstruct->pw_dir, dir) == 0) {
504 if (check_perm(statbuf, pstruct->pw_uid,
520 ret = move_dir(pstruct->pw_dir, dir,
532 if (strcmp(pstruct->pw_shell, shell) == 0) {
[all …]