andrewchambers / bupstash

Easy and efficient encrypted backups.

Home Page:https://bupstash.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paths broken when adding multiple subdirs of /

tlotze opened this issue · comments

When I put multiple directories with the same call, they will be stored as subdirectories of the common parent. However, when I do this with different subdirectories of the filesystem root, such as # bupstash put /etc /home, the paths will be broken:

# bupstash list-contents
drwxr-xr-x -         2022/11/07 11:05:36 .
drwxr-xr-x -         2022/11/14 19:25:52 tc
drwxr-xr-x -         2022/02/08 09:41:19 ome
...

and bupstash get --pick will also refer to those mangled paths.

Thanks for the report - it seems like this slipped through because the test suite can't test the root directory so easily.

This has been fixed in master and will be in the next bug fix release.

This has been fixed in master and will be in the next bug fix release.

This happens when testing #363 on top of 0.12.0, which is what I did through the official OpenBSD port/package, where tests failed unexpectedly.

This PR lacked a reference to the actual fix, so here it is: a73fd83.

I will try to do a release in the next week or so we can get this fix out.