Cleanup libbase

This commit is contained in:
topjohnwu
2022-06-17 02:36:04 -07:00
parent 90013e486d
commit 741b679306
3 changed files with 15 additions and 50 deletions

View File

@@ -72,7 +72,7 @@ static void load_overlay_rc(const char *overlay) {
if (str_ends(entry->d_name, ".rc")) {
LOGD("Found rc script [%s]\n", entry->d_name);
int rc = xopenat(dfd, entry->d_name, O_RDONLY | O_CLOEXEC);
rc_list.push_back(fd_full_read(rc));
rc_list.push_back(full_read(rc));
close(rc);
unlinkat(dfd, entry->d_name, 0);
}