From 45e10d55661dd4db2e77b5a08b9d28e6a3fde71e Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 16 Aug 2023 16:38:58 +1000 Subject: [PATCH] fs/cmd/torrentfs: Mount read-only --- fs/cmd/torrentfs/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cmd/torrentfs/main.go b/fs/cmd/torrentfs/main.go index 3ebdc281..d35f5c23 100644 --- a/fs/cmd/torrentfs/main.go +++ b/fs/cmd/torrentfs/main.go @@ -84,7 +84,7 @@ func mainErr() error { os.Stderr.WriteString("y u no specify mountpoint?\n") os.Exit(2) } - conn, err := fuse.Mount(args.MountDir) + conn, err := fuse.Mount(args.MountDir, fuse.ReadOnly()) if err != nil { return fmt.Errorf("mounting: %w", err) } -- 2.44.0