Lines Matching refs:pwd
47 #include <pwd.h>
2201 * Try to load mcp->pwd, if it isn't already.
2214 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid)
2227 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf,
2304 getpwnam_r(str, &ci->pwd, ci->pwbuf, ci->pwbufsz);
2308 *uidp = ci->pwd.pw_uid;
2417 pp = getdefaultproj(cip->pwd.pw_name, &proj, buf,
2587 /* Get the euid first so we don't override ci->pwd for the uid. */
2751 ci->gid = ci->pwd.pw_gid;
3286 cip->working_dir = strdup(cip->pwd.pw_dir);
3646 if (setregid(cip->pwd.pw_gid,
3648 cip->egid : cip->pwd.pw_gid) != 0) {
3680 if (initgroups(cip->pwd.pw_name, cip->gid) != 0) {
3743 switch (setproject(cip->project, cip->pwd.pw_name,