From 16b91f798faf6413f9b043543c5c0c3467b6fdbf Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 9 Apr 2017 19:49:17 -0400 Subject: 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 --- test/pacman/tests/TESTS | 1 + 1 file changed, 1 insertion(+) (limited to 'test/pacman/tests/TESTS') diff --git a/test/pacman/tests/TESTS b/test/pacman/tests/TESTS index eadb63b4..4dfa3bdb 100644 --- a/test/pacman/tests/TESTS +++ b/test/pacman/tests/TESTS @@ -113,6 +113,7 @@ TESTS += test/pacman/tests/querycheck002.py TESTS += test/pacman/tests/querycheck_fast_file_type.py TESTS += test/pacman/tests/reason001.py TESTS += test/pacman/tests/remove-assumeinstalled.py +TESTS += test/pacman/tests/remove-directory-replaced-with-symlink.py TESTS += test/pacman/tests/remove-optdepend-of-installed-package.py TESTS += test/pacman/tests/remove-recursive-cycle.py TESTS += test/pacman/tests/remove001.py -- cgit v1.2.3-24-g4f1b