mirror of
https://github.com/restic/restic.git
synced 2026-11-20 04:26:54 +00:00
archiver: use correct filepath in fileSaver for vss
When using the VSS FS, then `f.Name()` contained the filename in the snapshot. This caused a double mapping when calling NodeFromFileInfo.
This commit is contained in:
1 parent
b988754a6d
commit
26b77a543d
1 file changed
+1
-1
@@ -156,7 +156,7 @@ func (s *fileSaver) saveFile(ctx context.Context, chnker *chunker.Chunker, snPat
|
||||
|
||||
debug.Log("%v", snPath)
|
||||
|
||||
node, err := s.NodeFromFileInfo(snPath, f.Name(), fi, false)
|
||||
node, err := s.NodeFromFileInfo(snPath, target, fi, false)
|
||||
if err != nil {
|
||||
_ = f.Close()
|
||||
completeError(err)
|
||||
|
||||
Reference in new issue
Block a user