From de9e153bb90a862abaa1183ff1aed0f803160b29 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 22 Jun 2011 09:16:48 +0200 Subject: [PATCH] xbps-bin: check target: ignore symlinks with empty targets. --- bin/xbps-bin/check.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/xbps-bin/check.c b/bin/xbps-bin/check.c index 57dd1ead..c4f4f510 100644 --- a/bin/xbps-bin/check.c +++ b/bin/xbps-bin/check.c @@ -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);