commit | b4eeee8924baecbb207cd5e8289e84baeed6d9a2 | [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 | 94ffd0d1a9688ddf739f2f25df688350ae4d9bc0 [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