summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));