Home
last modified time | relevance | path

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

/openbsd/src/usr.bin/doas/
Denv.c88 const struct passwd *targpw) in createenv() argument
104 addnode(env, "HOME", targpw->pw_dir); in createenv()
105 addnode(env, "LOGNAME", targpw->pw_name); in createenv()
107 addnode(env, "SHELL", targpw->pw_shell); in createenv()
108 addnode(env, "USER", targpw->pw_name); in createenv()
226 const struct passwd *targpw) in prepenv() argument
230 env = createenv(rule, mypw, targpw); in prepenv()
Ddoas.c318 struct passwd *mypw, *targpw; in main() local
454 rv = getpwuid_r(target, &targpwstore, targpwbuf, sizeof(targpwbuf), &targpw); in main()
457 if (targpw == NULL) in main()
460 if (setusercontext(NULL, targpw, target, LOGIN_SETGROUP | in main()
480 mypw->pw_name, cmdline, targpw->pw_name, cwd); in main()
483 envp = prepenv(rule, mypw, targpw); in main()