From be256ed77b0f2c783ba20c4a82d55dd261a77c9a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 13:11:59 +0200 Subject: [PATCH] lib/repo.c: fix CID 62783 correctly --- lib/repo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/repo.c b/lib/repo.c index 9dfcccb4..05766696 100644 --- a/lib/repo.c +++ b/lib/repo.c @@ -513,6 +513,7 @@ xbps_repo_key_import(struct xbps_repo *repo) if (rv == ENOENT) rv = xbps_mkpath(dbkeyd, 0755); if (rv != 0) { + rv = errno; xbps_dbg_printf(repo->xhp, "[repo] `%s' cannot create %s: %s\n", repo->uri, dbkeyd, strerror(errno));