Searched defs:pstruct (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/oamuser/user/
H A Duserdel.c72 struct passwd *pstruct; local
115 pstruct = getpwnam(logname);
125 while ((pstruct = fgetpwent(pwf)) != NULL)
126 if (strcmp(pstruct->pw_name, logname) == 0)
132 if (pstruct == NULL) {
157 if (stat(pstruct->pw_dir, &statbuf)) {
163 if (check_perm(statbuf, pstruct->pw_uid, pstruct->pw_gid,
165 errmsg(M_NO_PERM, logname, pstruct->pw_dir);
170 if (rm_files(pstruct
[all...]
H A Dusermod.c153 struct passwd *pstruct; /* password struct for login */ local
359 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,
505 pstruct
[all...]

Completed in 46 milliseconds