Check that the option string is not an empty string. If it is, don't add
authorDerrik Pates <demon@now.ai>
Thu, 19 May 2011 19:42:49 +0000 (13:42 -0600)
committerDerrik Pates <demon@now.ai>
Thu, 19 May 2011 19:42:49 +0000 (13:42 -0600)
"-o" and an empty mountopts to the argument list.

Fuse.xs

diff --git a/Fuse.xs b/Fuse.xs
index 3a09519..4e1ab7d 100755 (executable)
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -1657,7 +1657,7 @@ perl_fuse_main(...)
                fuse_opt_free_args(&args);
                croak("out of memory\n");
        }
-       if (mountopts &&
+       if (mountopts && strcmp("", mountopts) &&
             (fuse_opt_add_arg(&args, "-o") == -1 ||
             fuse_opt_add_arg(&args, mountopts) == -1)) {
                fuse_opt_free_args(&args);