bareos2015: bareos-14.2 a09b672a
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
mvwieringen | mvwieringen | bareos-14.2 | 2013-06-24 18:56 | bareos-14.2 9956f672 | Pending |
Affected Issues | 0000195: Interactive path selection can use refactoring | ||||
Changeset | Interactive path selection can use refactoring The code in the director which is used to select interactively the files to restore needs some cleanup. Currently the cwd (current working directory) is stored in a fixed length buffer of sometimes 1100 and sometimes 2000 bytes. It would be better to use a POOLMEM buffer which can extend to the actual length needed. Currently you can also not directly mark or unmark a full path as the mark and unmark only matches the name using fnmatch against the current working directory. This also skips any path information and as the internal storage of the tree is per directory node this will never work. A simple fix would be to check if the selection pattern is a full path (e.g. has a / in it) and then split the selection in a path and file part. Then we can do a change directory into the wanted path and then do the same pattern matching and restore the working directory after the selection. Fixes 0000195: Interactive path selection can use refactoring |
||||
mod - src/dird/ua_tree.c | Diff File | ||||
mod - src/lib/tree.c | Diff File | ||||
mod - src/lib/tree.h | Diff File |