mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-03-03 18:28:07 +01:00
Force read-only mount by explicitly passing -o ro
This commit is contained in:
@@ -179,6 +179,7 @@ int main(int argc, char **argv)
|
||||
|
||||
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
|
||||
fuse_opt_parse(&args, &data, sparsebundle_options, sparsebundle_opt_proc);
|
||||
fuse_opt_add_arg(&args, "-oro"); // Force read-only mount
|
||||
|
||||
if (!data.path)
|
||||
return sparsebundle_show_usage(argv[0]);
|
||||
|
||||
Reference in New Issue
Block a user