diff --git a/lib/orphans.c b/lib/orphans.c index 7fe9e39a..67a94d00 100644 --- a/lib/orphans.c +++ b/lib/orphans.c @@ -138,6 +138,7 @@ xbps_find_orphan_packages(void) rv = xbps_callback_array_iter_reverse_in_dict(dict, "packages", find_orphan_pkg, NULL); if (rv != 0) { + errno = rv; cleanup(); return NULL; }