Fix segfault when uninstalling broken backed-up symlink
commitaec60e37822509a1ca7fc53244878d3f1505d964
authorDan McGee <dan@archlinux.org>
Mon, 16 May 2011 16:50:13 +0000 (16 11:50 -0500)
committerDan McGee <dan@archlinux.org>
Mon, 16 May 2011 16:50:13 +0000 (16 11:50 -0500)
treeff346bb35e239e2a957c0b9ce27ded2a14f34c60
parent93f02f5793ad7907aa0bc7c4a9fe64f0c7ce86f6
Fix segfault when uninstalling broken backed-up symlink

Issue FS#24230. If a symlink is broken and included in the removal
process of a package, we blew up and segfaulted due to
alpm_compute_md5sum() returning NULL and then performing a strcmp()
operation.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/remove.c
test/pacman/tests/symlink002.py