commit | 3ed90b75dac12f98f9e82cdbc32ea3c8aa7711dc | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Tue Mar 05 13:01:25 2019 -0800 |
committer | Josh Gao <jmgao@google.com> | Wed Mar 06 13:03:30 2019 -0800 |
tree | d560ae78fa3841ca642710fa134e13e1fdafbe04 | |
parent | 79a43cf135804fefe74811104f7782f0eeb1bf54 [diff] |
adbd: cleanups in remount/verity. 1. Don't clear O_CLOEXEC on an fd we're duping to stdin/out/err: dup2 does that for us if oldfd != newfd, and we know the fd can't be stdin/out/err. 2. Use unique_fd. 3. Remove gotos by breaking the remount logic into its own function. Test: mma Change-Id: If9929e7f20de445322fd498e1379a2d4e572cb52