lib/repo.c: CID 62671 (unchecked return value)
This commit is contained in:
parent
616af5c207
commit
66292180a3
@ -509,10 +509,10 @@ xbps_repo_key_import(struct xbps_repo *repo)
|
||||
dbkeyd = dirname(p);
|
||||
assert(dbkeyd);
|
||||
if (access(dbkeyd, R_OK|W_OK) == -1) {
|
||||
if (errno == ENOENT) {
|
||||
xbps_mkpath(dbkeyd, 0755);
|
||||
} else {
|
||||
rv = errno;
|
||||
rv = errno;
|
||||
if (rv == ENOENT)
|
||||
rv = xbps_mkpath(dbkeyd, 0755);
|
||||
if (rv != 0) {
|
||||
xbps_dbg_printf(repo->xhp,
|
||||
"[repo] `%s' cannot create %s: %s\n",
|
||||
repo->uri, dbkeyd, strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user