Lines Matching refs:pwd
30 #include <pwd.h>
79 struct passwd *pwd;
235 if (pwbuf->pwd == NULL) {
236 pwbuf->pwd = malloc(sizeof (struct passwd));
237 if (pwbuf->pwd == NULL) {
277 if (pwbuf->pwd) {
282 if (private_getpwnam_r(name, pwbuf->pwd, pwbuf->pwd_scratch,
303 if (pwbuf->pwd) free(pwbuf->pwd);
342 if (getuid() == pwbuf->pwd->pw_uid) {
353 if (pwbuf->pwd) free(pwbuf->pwd);
477 pw = pwbuf->pwd;
597 if (pwbuf->pwd) free(pwbuf->pwd);
646 pw = pwbuf->pwd;
1033 files_update_passwd(char *name, struct passwd *pwd)
1071 result = putpwent(pwd, dst);
1127 if (pwbuf->pwd) {
1128 result = files_update_passwd(name, pwbuf->pwd);
1143 if (pwbuf->pwd) {
1144 (void) memset(pwbuf->pwd, 0, sizeof (struct passwd));
1146 free(pwbuf->pwd);