Merge pull request #5356 from MichaelEischer/fix-backup-stdin-filename

backup: Fix `--stdin-filename` with directory
This commit is contained in:
Michael Eischer
2025-06-02 20:27:26 +02:00
committed by GitHub
7 changed files with 259 additions and 208 deletions

View File

@@ -0,0 +1,14 @@
Bugfix: Correctly handle `backup --stdin-filename` with directories
In restic 0.18.0, the `backup` command failed if a filename that includes
a least a directory was passed to `--stdin-filename`. For example,
`--stdin-filename /foo/bar` resulted in the following error:
```
Fatal: unable to save snapshot: open /foo: no such file or directory
```
This has been fixed now.
https://github.com/restic/restic/issues/5324
https://github.com/restic/restic/pull/5356