Home
last modified time | relevance | path

Searched refs:pwbuf (Results 1 – 5 of 5) sorted by relevance

/external/libedit/src/
Dfilecomplete.c76 char pwbuf[1024]; in fn_tilde_expand() local
101 if (getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf), in fn_tilde_expand()
105 pass = getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
111 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
114 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
/external/selinux/libsemanage/src/
Dgenhomedircon.c288 struct passwd pwstorage, *pwbuf; in get_home_dirs() local
362 while ((retval = getpwent_r(&pwstorage, rbuf, rbuflen, &pwbuf)) == 0) { in get_home_dirs()
363 if (pwbuf->pw_uid < minuid || pwbuf->pw_uid > maxuid) in get_home_dirs()
365 if (!semanage_list_find(shells, pwbuf->pw_shell)) in get_home_dirs()
367 int len = strlen(pwbuf->pw_dir) -1; in get_home_dirs()
368 for(; len > 0 && pwbuf->pw_dir[len] == '/'; len--) { in get_home_dirs()
369 pwbuf->pw_dir[len] = '\0'; in get_home_dirs()
371 if (strcmp(pwbuf->pw_dir, "/") == 0) in get_home_dirs()
373 if (ignore(pwbuf->pw_dir)) in get_home_dirs()
375 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) in get_home_dirs()
[all …]
/external/e2fsprogs/e2fsck/
Dprofile.c483 char pwbuf[BUFSIZ]; in profile_open_file() local
486 if (!getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) in profile_open_file()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc1301 INTERCEPTOR(int, getpwent_r, __sanitizer_passwd *pwbuf, char *buf,
1304 COMMON_INTERCEPTOR_ENTER(ctx, getpwent_r, pwbuf, buf, buflen, pwbufp);
1308 int res = REAL(getpwent_r)(pwbuf, buf, buflen, pwbufp);
1316 INTERCEPTOR(int, fgetpwent_r, void *fp, __sanitizer_passwd *pwbuf, char *buf,
1319 COMMON_INTERCEPTOR_ENTER(ctx, fgetpwent_r, fp, pwbuf, buf, buflen, pwbufp);
1323 int res = REAL(fgetpwent_r)(fp, pwbuf, buf, buflen, pwbufp);
1331 INTERCEPTOR(int, getgrent_r, __sanitizer_group *pwbuf, char *buf, SIZE_T buflen,
1334 COMMON_INTERCEPTOR_ENTER(ctx, getgrent_r, pwbuf, buf, buflen, pwbufp);
1338 int res = REAL(getgrent_r)(pwbuf, buf, buflen, pwbufp);
1346 INTERCEPTOR(int, fgetgrent_r, void *fp, __sanitizer_group *pwbuf, char *buf,
[all …]
/external/ppp/pppd/
Deap.c547 tpw.pebuf.password.len = t_fromb64((char *)tpw.pwbuf,
549 tpw.pebuf.password.data = tpw.pwbuf;