Lines Matching refs:pwbuf
2042 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid) in lookup_pwd()
2045 if (mcp->pwbuf == NULL) { in lookup_pwd()
2048 mcp->pwbuf = malloc(mcp->pwbufsz); in lookup_pwd()
2049 if (mcp->pwbuf == NULL) in lookup_pwd()
2055 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf, in lookup_pwd()
2061 free(mcp->pwbuf); in lookup_pwd()
2062 mcp->pwbuf = NULL; in lookup_pwd()
2122 if (ci->pwbuf == NULL) { in get_uid()
2124 ci->pwbuf = malloc(ci->pwbufsz); in get_uid()
2125 if (ci->pwbuf == NULL) in get_uid()
2132 getpwnam_r(str, &ci->pwd, ci->pwbuf, ci->pwbufsz); in get_uid()
2139 free(ci->pwbuf); in get_uid()
2140 ci->pwbuf = NULL; in get_uid()
3337 free(cip->pwbuf); in restarter_get_method_context()
3356 if (cip->pwbuf != NULL) { in restarter_get_method_context()
3357 free(cip->pwbuf); in restarter_get_method_context()
3358 cip->pwbuf = NULL; in restarter_get_method_context()
3419 cip->pwbuf = NULL; in restarter_set_method_context()
3432 if (cip->pwbuf == NULL) { in restarter_set_method_context()
3465 if (cip->pwbuf == NULL) { in restarter_set_method_context()
3671 free(cip->pwbuf); in restarter_set_method_context()
3672 cip->pwbuf = NULL; in restarter_set_method_context()