commit | 3770507114f64200c5177e0b86a413a79eac4417 | [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 | 621fc2618c8786152db3b4bf044796e5df0b3a09 | |
parent | 84c409d1f90ebf04f8d33abee6d190cb83445557 [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