1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +00:00

Merge pull request #1781 from McKael/fix_restick_backup_rejectByDevice

Fix restic backup --one-file-system /
This commit is contained in:
Alexander Neumann 2018-05-16 21:58:58 +02:00
commit ecfe59235e

View file

@ -229,11 +229,14 @@ func rejectByDevice(samples []string) (RejectFunc, error) {
panic(err)
}
for dir := item; dir != filepath.Dir(dir); dir = filepath.Dir(dir) {
for dir := item; ; dir = filepath.Dir(dir) {
debug.Log("item %v, test dir %v", item, dir)
allowedID, ok := allowed[dir]
if !ok {
if dir == filepath.Dir(dir) {
break
}
continue
}