forked from TrueCloudLab/restic
local/sftp: Remove unneeded stat() call
This commit is contained in:
parent
c40b3d3983
commit
9842eff887
4 changed files with 5 additions and 18 deletions
|
@ -9,6 +9,6 @@ import (
|
|||
)
|
||||
|
||||
// set file to readonly
|
||||
func setNewFileMode(f string, fi os.FileInfo) error {
|
||||
return fs.Chmod(f, fi.Mode()&os.FileMode(^uint32(0222)))
|
||||
func setNewFileMode(f string, mode os.FileMode) error {
|
||||
return fs.Chmod(f, mode)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue