Skip to content

Commit

Permalink
hfsfuse: fix fullhelp option with macFUSE
Browse files Browse the repository at this point in the history
Most FUSE implementations accept a NULL mount point when just printing
help from fuse_mount, but macFUSE copies this with strncpy before option
parsing (at least according to the last source release.)
On the other hand all implementations work with an empty string.
  • Loading branch information
0x09 committed Apr 20, 2024
1 parent 877ed34 commit 2b6087b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hfsfuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ static int hfsfuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
#endif
if(key == HFSFUSE_OPT_KEY_FULLHELP) {
// fuse_mount and fuse_new print their own set of options
fuse_mount(NULL, args);
fuse_mount("", args);
fuse_new(NULL, args, NULL, 0, NULL);
}
fuse_opt_free_args(args);
Expand Down

0 comments on commit 2b6087b

Please sign in to comment.