summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-stemmer.c
diff options
context:
space:
mode:
authorFabian Vogt <fvogt@suse.de>2022-03-09 13:37:49 +0100
committerRichard Hughes <richard@hughsie.com>2022-03-09 20:06:59 +0000
commit87e1aa8774dad3e6b504c641938e84490116088f (patch)
tree95f9f7b6c5aad0cbf469cd812d841079032fbd7b /libappstream-glib/as-stemmer.c
parent349799ba1d026a18012520b9f2e1901a88ac467b (diff)
downloadappstream-glib-87e1aa8774dad3e6b504c641938e84490116088f.tar.gz
Fix extracting relative symlinks
ebdefa2745 tried to fix handling of relative symlinks in archives, but that only addressed targets starting with ".."/. Fix it properly by using asb_utils_sanitise_path only for absolute paths, keep relative paths as-is. Simplify code for handling absolute symlinks by just prepending the root instead of converting it to a relative link. Hardlink targets are returned as paths relative to the archive root, so the sanitization code is correct there.
Diffstat (limited to 'libappstream-glib/as-stemmer.c')
0 files changed, 0 insertions, 0 deletions