commit | c2e64a4d402c5cd7c0f11ed164459fb07b51b1b3 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Jun 29 13:16:23 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Jun 29 13:27:50 2020 -0700 |
tree | 9b5c25ed92fb6ab85d6beac8deb536d06d61c458 | |
parent | a18251e269f4fe00a257434cdf6c1adc1d6ef5e6 [diff] |
Save errno right after syscalls. Save errno right after calling into ReadFileToString / opendir / readdir because std::string::operator+ may allocate memory, which may cause errno to be set. Test: builds Bug: 155407386 Change-Id: I8a08b1d921bff5e053ea888d932e99d7c7bc74c7