commit | dee65313ba343f09ef76b1d7d7f9e6c9fe2bd10c | [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 | d8e9b7e22a6dbf19e6d7ed6a8bd47dd60dcd96bc [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