From 4b68af989ee74d731c161d5ff09634492702695e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 18 Aug 2011 10:43:30 +0200 Subject: [PATCH] libxbps: xbps_repository_sync_index: return proper return value in error path. --- lib/repository_sync_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repository_sync_index.c b/lib/repository_sync_index.c index 045d17e9..0e85e66d 100644 --- a/lib/repository_sync_index.c +++ b/lib/repository_sync_index.c @@ -177,7 +177,7 @@ xbps_repository_sync_pkg_index(const char *uri) if (fetchLastErrCode) rv = fetchLastErrCode; else - rv = errno; + rv = sverrno; if (xhp->xbps_transaction_err_cb) { xhp->xtcd->state = XBPS_TRANS_STATE_REPOSYNC;