diff options
author | Jakob Unterwurzacher | 2021-06-02 19:32:20 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-06-02 19:32:20 +0200 |
commit | 8f2be5d93cda2696fce7bc1a3f8a888a19321f09 (patch) | |
tree | fda2f89077dce75d7112cd8f2fed1ec4941f7e3c /fsck.go | |
parent | 307dfd7f71ee1d72113e2194e9b26a53b9a36c46 (diff) |
fsck: mark temporary mount read-only
We don't write during fsck, but somebody else might try
to.
Diffstat (limited to 'fsck.go')
-rw-r--r-- | fsck.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -260,6 +260,7 @@ func fsck(args *argContainer) (exitcode int) { os.Exit(exitcodes.Usage) } args.allow_other = false + args.ro = true var err error args.mountpoint, err = ioutil.TempDir("", "gocryptfs.fsck.") if err != nil { |