Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/oamuser/user/
H A Duserdel.c71 struct passwd *pstruct; in main() local
114 pstruct = getpwnam(logname); in main()
124 while ((pstruct = fgetpwent(pwf)) != NULL) in main()
125 if (strcmp(pstruct->pw_name, logname) == 0) in main()
131 if (pstruct == NULL) { in main()
156 if( stat( pstruct->pw_dir, &statbuf ) ) { in main()
162 if( check_perm( statbuf, pstruct->pw_uid, pstruct->pw_gid, in main()
164 errmsg( M_NO_PERM, logname, pstruct->pw_dir ); in main()
168 if( rm_files(pstruct->pw_dir, logname) != EX_SUCCESS ) in main()
202 errmsg( M_UID_USED, pstruct->pw_uid ); in main()
H A Dusermod.c152 struct passwd *pstruct; /* password struct for login */ local
342 pstruct = passwd_cpmalloc(pw);
398 if (uid != pstruct->pw_uid) {
424 } else uid = pstruct->pw_uid;
451 gid = pstruct->pw_gid;
454 if (gid != pstruct->pw_gid)
458 } else gid = pstruct->pw_gid;
477 if (strcmp(pstruct->pw_dir, dir) == 0) {
487 if (check_perm(statbuf, pstruct->pw_uid,
488 pstruct->pw_gid, S_IWOTH|S_IXOTH) != 0) {
[all …]