summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2019-03-05 13:01:25 -0800
committerJosh Gao <jmgao@google.com>2019-03-06 13:03:30 -0800
commit3ed90b75dac12f98f9e82cdbc32ea3c8aa7711dc (patch)
treed560ae78fa3841ca642710fa134e13e1fdafbe04 /libsparse/sparse.cpp
parent79a43cf135804fefe74811104f7782f0eeb1bf54 (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
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions