From 7f9b2ce419e8d9abfff61bca852c5cb652ee2361 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 24 Jul 2016 15:45:31 +0800 Subject: sdcard: Fix sdcardFS check This check is inverted, breaking FUSE. Change-Id: I81a710f464bce73f49fb1af6050a198b5f443f52 --- sdcard/sdcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.1