aboutsummaryrefslogtreecommitdiff
path: root/lib/common/parse_size.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-10-28 13:03:59 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-10-31 17:38:34 +0100
commit5ca4295edfde4c1603d9e3e31546c8f6228e7b8f (patch)
tree2686c399ec3ae507d5ebdb065e2f995d487aee72 /lib/common/parse_size.c
parent23e31c1076f7d6a6d09014c3ae2fff54692b9e7f (diff)
Fix: tar2sqfs: if --root-becomes is used, also retarget links
In addition to skipping non-prefixed files and stripping the prefix off of entries we accept, the targets of links also have to be altered, since they can be absolute paths with the root prefix attached. This can affect symbolic links as well. Altough they are allowed to point into nowhere, across filesystem boundaries, they may also be absolute paths refering to existing locations in the filesystem, so no distinction is made by default. However, the later may be intended (e.g. only a subdirectory is packed into SquashFS and then mounted at that location), so a command line switch is added to disable symlink retargetting. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/parse_size.c')
0 files changed, 0 insertions, 0 deletions