diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-04-10 01:49:17 +0200 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-04-17 01:41:35 +0200 |
commit | 16b91f798faf6413f9b043543c5c0c3467b6fdbf (patch) | |
tree | 929d4406c6fe65d234bb5239dd6b027cedd80654 /test/tap.sh | |
parent | f9de3b22ad9e532af14c8d5b0b90a3f0f747e331 (diff) | |
download | pacman-16b91f798faf6413f9b043543c5c0c3467b6fdbf.tar.gz pacman-16b91f798faf6413f9b043543c5c0c3467b6fdbf.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>
Diffstat (limited to 'test/tap.sh')
0 files changed, 0 insertions, 0 deletions