Lines Matching refs:upw
487 struct passwd *upw;
490 struct passwd *rpw, *upw;
496 upw = (struct passwd *)getpwuid(getuid());
497 if (upw == NULL) { /* should not pass NULL to getspnam */
501 user = upw->pw_name;
516 upw = (struct passwd *)getpwuid(getuid());
518 if (!upw) {
788 struct passwd *rpw, *upw;
809 upw = getpwuid(getuid());
810 if (upw) {
811 user = upw->pw_name;
812 userpass = strdup(upw->pw_passwd);
825 upw = (struct passwd *)getpwuid(getuid());
826 if (upw)
827 userpass = strdup(upw->pw_passwd);