From a6a0a088fa8bb657bb2dc5b4d5bd3338ad54a61f Mon Sep 17 00:00:00 2001 From: szaka Date: Thu, 25 Oct 2007 19:31:36 +0000 Subject: [PATCH] use the FUSE debug only if the debug mount option is used --- src/ntfs-3g.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index f464db9a..be044412 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2257,11 +2257,11 @@ int main(int argc, char *argv[]) if (fuse_opt_add_arg(&margs, "") == -1 || fuse_opt_add_arg(&margs, "-o") == -1) fh = NULL; - if (!ctx->debug && !ctx->no_detach) { - if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache") == -1) + if (ctx->debug) { + if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache,debug") == -1) fh = NULL; } else { - if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache,debug") == -1) + if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache") == -1) fh = NULL; } if (fh)