commit | bf0929f6f789b5ecabfe1c6d7b5b0bbff879814b | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Apr 05 12:09:17 2017 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Apr 05 12:30:12 2017 -0700 |
tree | c9f3dadc6b472b78dc9004e2e5a773322b21ffb7 | |
parent | 99574970aa375dff62b9797faf439262615d144c [diff] |
Convert opens to use unique_fd. Fixes a potential leak of fds in WriteStringToFile. Test: I wrote a temporary test that failed the fchmod on host in Test: WriteStringToFile. I verified this fails with the old code after running Test: out of fds and passes with the new code. Change-Id: I168160841e35dd480d59a69bb4aa8176899fbb32