summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Wei Liew <zhaoweiliew@gmail.com>2016-07-24 15:45:31 +0800
committerZhao Wei Liew <zhaoweiliew@gmail.com>2016-07-24 15:45:31 +0800
commit7f9b2ce419e8d9abfff61bca852c5cb652ee2361 (patch)
treece7d8319652f1dbff2859a987598a135e0a2005f
parentd63e6757fa22fcb58653233fce035deed8036a1b (diff)
downloadsystem_core-7f9b2ce419e8d9abfff61bca852c5cb652ee2361.zip
system_core-7f9b2ce419e8d9abfff61bca852c5cb652ee2361.tar.gz
system_core-7f9b2ce419e8d9abfff61bca852c5cb652ee2361.tar.bz2
sdcard: Fix sdcardFS check
This check is inverted, breaking FUSE. Change-Id: I81a710f464bce73f49fb1af6050a198b5f443f52
-rw-r--r--sdcard/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index c0f60ed..5309bbd 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -1780,7 +1780,7 @@ static int usage() {
static int fuse_setup(struct fuse* fuse, gid_t gid, mode_t mask, bool use_sdcardfs) {
char opts[256];
- if (use_sdcardfs) {
+ if (!use_sdcardfs) {
fuse->fd = open("/dev/fuse", O_RDWR);
if (fuse->fd == -1) {
ERROR("failed to open fuse device: %s\n", strerror(errno));