Searched refs:passwd_file (Results 1 – 2 of 2) sorted by relevance
/bionic/tests/ |
D | grp_pwd_file_test.cpp | 97 PasswdFile passwd_file(file.path, nullptr); in TEST() local 98 FileUnmapper unmapper(passwd_file); in TEST() 100 FindAndCheckPasswdEntry(&passwd_file, "name", 1, 2, "dir", "shell"); in TEST() 102 EXPECT_FALSE(passwd_file.FindByName("not_name", nullptr)); in TEST() 103 EXPECT_FALSE(passwd_file.FindById(3, nullptr)); in TEST() 153 PasswdFile passwd_file(file.path, nullptr); in TEST() local 154 FileUnmapper unmapper(passwd_file); in TEST() 156 FindAndCheckPasswdEntry(&passwd_file, "first", 1, 2, "dir", "shell"); in TEST() 157 FindAndCheckPasswdEntry(&passwd_file, "middle-ish", 13, 4, "/", "/system/bin/sh"); in TEST() 158 FindAndCheckPasswdEntry(&passwd_file, "last", 29, 4, "last_user_dir", "last_user_shell"); in TEST() [all …]
|
/bionic/libc/bionic/ |
D | grp_pwd.cpp | 437 for (auto& passwd_file : passwd_files) { in oem_id_to_passwd() local 438 if (passwd_file.FindById(uid, state)) { in oem_id_to_passwd() 543 for (auto& passwd_file : passwd_files) { in getpwnam_internal() local 544 if (passwd_file.FindByName(login, state)) { in getpwnam_internal()
|