fsck: mark temporary mount read-only
We don't write during fsck, but somebody else might try to.
This commit is contained in:
parent
307dfd7f71
commit
8f2be5d93c
1
fsck.go
1
fsck.go
@ -260,6 +260,7 @@ func fsck(args *argContainer) (exitcode int) {
|
|||||||
os.Exit(exitcodes.Usage)
|
os.Exit(exitcodes.Usage)
|
||||||
}
|
}
|
||||||
args.allow_other = false
|
args.allow_other = false
|
||||||
|
args.ro = true
|
||||||
var err error
|
var err error
|
||||||
args.mountpoint, err = ioutil.TempDir("", "gocryptfs.fsck.")
|
args.mountpoint, err = ioutil.TempDir("", "gocryptfs.fsck.")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user