summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/signing.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-10 01:49:17 +0200
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-09 05:27:44 +0200
commit0fd8455c66ae574e479f9d9a645f2e8366bac993 (patch)
treefbebbef6602275cbfb1611c424457276bea56474 /lib/libalpm/signing.c
parent908769b54002e104b90ab2b3e5ca8066affd4394 (diff)
downloadpacman-0fd8455c66ae574e479f9d9a645f2e8366bac993.tar.gz
pacman-0fd8455c66ae574e479f9d9a645f2e8366bac993.tar.xz
unlink_file: strip trailing slashes
If the user replaces a directory with a symlink, libalpm would get confused because the trailing slash causes system calls to resolve the symlink. This leads to errors and a misleading message during upgrades. Even though libalpm does not support this, it should not be giving misleading errors. Also adds an overflow check. Fixes FS#51377 Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> (cherry picked from commit 16b91f798faf6413f9b043543c5c0c3467b6fdbf)
Diffstat (limited to 'lib/libalpm/signing.c')
0 files changed, 0 insertions, 0 deletions