summaryrefslogtreecommitdiffstats
path: root/fuse_sideload
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-03-29 04:52:46 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-29 04:52:46 +0100
commita0fe1227b834410c8ae12159bceaaa7e76bec308 (patch)
tree385629afcd38f624cd8af6c2741aba0e9756b704 /fuse_sideload
parentMerge "Remove the extern declaration of `sehandle` from roots.cpp." (diff)
parentFix bogus error checking on unique_fd (diff)
downloadandroid_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.tar
android_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.tar.gz
android_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.tar.bz2
android_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.tar.lz
android_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.tar.xz
android_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.tar.zst
android_bootable_recovery-a0fe1227b834410c8ae12159bceaaa7e76bec308.zip
Diffstat (limited to 'fuse_sideload')
-rw-r--r--fuse_sideload/fuse_sideload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse_sideload/fuse_sideload.cpp b/fuse_sideload/fuse_sideload.cpp
index b5b6ac15e..3d9480309 100644
--- a/fuse_sideload/fuse_sideload.cpp
+++ b/fuse_sideload/fuse_sideload.cpp
@@ -392,7 +392,7 @@ int run_fuse_sideload(std::unique_ptr<FuseDataProvider>&& provider, const char*
}
fd.ffd.reset(open("/dev/fuse", O_RDWR));
- if (!fd.ffd) {
+ if (fd.ffd == -1) {
perror("open /dev/fuse");
result = -1;
goto done;