commit | 48d08c2c9d3c82c752012f7e16558a5afdf22748 | [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 | e695a39912b6df70a37328a867da25fb86ba2487 | |
parent | 568dc01fdf973c2d731c9dafe7c5b73ecb6627aa [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