xbps-bin: check target: ignore symlinks with empty targets.
This commit is contained in:
parent
092c832e6c
commit
de9e153bb9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user