From: Michael Schroeder Date: Tue, 17 Jul 2018 11:50:17 +0000 (+0200) Subject: Fix reading of content file in susetags X-Git-Tag: 0.6.35~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f910327e2dfc2b87051a98d7fcda8d93f21a336;p=thirdparty%2Flibsolv.git Fix reading of content file in susetags --- diff --git a/tools/repo2solv.c b/tools/repo2solv.c index 29765bc8..a9f38508 100644 --- a/tools/repo2solv.c +++ b/tools/repo2solv.c @@ -365,8 +365,8 @@ read_susetags_repo(Repo *repo, const char *dir) struct dirent *de; /* read content file */ - tmp = pool_tmpjoin(pool, dir, "content", 0); repo_add_repodata(repo, 0); + tmp = solv_dupjoin(dir, "/content", 0); if ((fp = fopen(tmp, "r")) != 0) { if (repo_add_content(repo, fp, REPO_REUSE_REPODATA)) @@ -378,6 +378,7 @@ read_susetags_repo(Repo *repo, const char *dir) descrdir = repo_lookup_str(repo, SOLVID_META, SUSETAGS_DESCRDIR); defvendor = repo_lookup_id(repo, SOLVID_META, SUSETAGS_DEFAULTVENDOR); } + tmp = solv_free(tmp); /* get content of descrdir directory */ ddir = solv_dupjoin(dir, "/", descrdir);