backup: Set O_NOATIME in the right place

The archiver uses FS.OpenFile, where FS is an instance of the FS
interface. This is different from fs.OpenFile, which uses the OpenFile
method provided by the fs package.
This commit is contained in:
Michael Eischer
2021-12-30 15:32:42 +01:00
committed by greatroar
parent 7080fed7ae
commit 6b17a7110c
2 changed files with 4 additions and 12 deletions

View File

@@ -24,6 +24,7 @@ func (fs Local) Open(name string) (File, error) {
if err != nil {
return nil, err
}
_ = setFlags(f)
return f, nil
}
@@ -37,6 +38,7 @@ func (fs Local) OpenFile(name string, flag int, perm os.FileMode) (File, error)
if err != nil {
return nil, err
}
_ = setFlags(f)
return f, nil
}