mirror of
https://github.com/restic/restic.git
synced 2025-10-09 15:30:24 +00:00
local: mark repository files as read-only
This is intended to prevent accidental modifications of data files. Marking the files as read-only was accidentally removed in #1258.
This commit is contained in:
@@ -7,6 +7,6 @@ import (
|
||||
// We don't modify read-only on windows,
|
||||
// since it will make us unable to delete the file,
|
||||
// and this isn't common practice on this platform.
|
||||
func setNewFileMode(f string, mode os.FileMode) error {
|
||||
func setFileReadonly(f string, mode os.FileMode) error {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user