xbps-bin: check target: ignore symlinks with empty targets.

This commit is contained in:
Juan RP 2011-06-22 09:16:48 +02:00
parent 092c832e6c
commit de9e153bb9

View File

@ -159,6 +159,8 @@ xbps_check_pkg_integrity(const char *pkgname)
while ((obj = prop_object_iterator_next(iter))) {
if (!prop_dictionary_get_cstring_nocopy(obj, "target", &tgt))
continue;
if (strcmp(tgt, "") == 0)
continue;
prop_dictionary_get_cstring_nocopy(obj, "file", &file);
if (realpath(file, buf) == NULL) {
prop_object_iterator_release(iter);