fs: drop unused permission parameter from OpenFile

This commit is contained in:
Michael Eischer
2024-11-02 17:47:54 +01:00
parent b402e8a6fc
commit 623ba92b98
12 changed files with 25 additions and 25 deletions

View File

@@ -497,7 +497,7 @@ func (arch *Archiver) save(ctx context.Context, snPath, target string, previous
// reopen file and do an fstat() on the open file to check it is still
// a file (and has not been exchanged for e.g. a symlink)
file, err := arch.FS.OpenFile(target, fs.O_RDONLY|fs.O_NOFOLLOW, 0)
file, err := arch.FS.OpenFile(target, fs.O_RDONLY|fs.O_NOFOLLOW)
if err != nil {
debug.Log("Openfile() for %v returned error: %v", target, err)
return filterError(err)