Lines Matching refs:pstruct
72 struct passwd *pstruct;
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->pw_dir, logname, zfs_flags) != EX_SUCCESS)
206 errmsg(M_UID_USED, pstruct->pw_uid);