diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-09-03 18:12:29 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-09-03 18:12:29 +0200 |
commit | 72f9464c030c695c94fa0f920d46c38a3e887c61 (patch) | |
tree | e9f68421eb1009759635ba7162d256bf201cd6aa /lib/fstree | |
parent | cdf61c556f95b0fc8a8ecf187d9f61e60bf99c53 (diff) |
gensquashfs: fix file path for glob directory scanning
If we glob a directory, the generated entries can be added to a
virtual sub directory, that does not corespond to the original layout.
If we try to use those virtual paths for packing files, it will fail,
so we need to remove that prefix to reconstruct the original path.
Second, the glob operation allows us to select a sub-directory of the
pack-dir. This prefix-path is stripped away when scanning the entries.
We need to add it back to get the original, pack-dir relative file
paths.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree')
0 files changed, 0 insertions, 0 deletions