Anchor rm paths before splitting them so parent traversal is normalized
relative to the fileop root before the final path component is appended.
Add regression coverage for parent traversal attempts and preserve removal of
terminal symlinks without following them.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit cc8b70d02fb890880e79abd44b9a0ad8b7e15d5b)
(cherry picked from commit 3916124aa4)