aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/src/selinux.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-03 18:12:29 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-03 18:12:29 +0200
commit72f9464c030c695c94fa0f920d46c38a3e887c61 (patch)
treee9f68421eb1009759635ba7162d256bf201cd6aa /bin/gensquashfs/src/selinux.c
parentcdf61c556f95b0fc8a8ecf187d9f61e60bf99c53 (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 'bin/gensquashfs/src/selinux.c')
0 files changed, 0 insertions, 0 deletions