commit | b5aee72de02988dbcdbdb418d7038d800f1b137a | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Jun 04 17:54:48 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Tue Jun 12 16:35:58 2018 -0700 |
tree | 6e84a9001cb2b0e971edc0595c32e8ea66d52c15 | |
parent | e3c9030dc9c221d0b0609d19a9728a075d6f4f95 [diff] |
Don't call fdopendir on unique_fd::get. Transfer ownership by releasing first, instead of calling fdopendir on unique_fd::get() and then releasing afterwards, to allow for strict fd-ownership checks. Test: treehugger Change-Id: Idf8f107f8b6e4fc6bea03b9a9713d30b5c874f5a