summaryrefslogtreecommitdiffstats
path: root/fuse_sideload
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2019-03-28 07:48:08 +0100
committerBernie Innocenti <codewiz@google.com>2019-03-28 09:28:13 +0100
commit8bd6f455d261fa62a20321a426723c491903a82e (patch)
tree0864259080dd9934b15435fe4b3500b45485f895 /fuse_sideload
parentMerge "Allow RSA 4096 key in package verification" (diff)
downloadandroid_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar
android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.gz
android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.bz2
android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.lz
android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.xz
android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.tar.zst
android_bootable_recovery-8bd6f455d261fa62a20321a426723c491903a82e.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;