From 4846346c18067ab667d9c53113c7b3fe46be313f Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Wed, 6 Oct 2010 10:55:09 +0300 Subject: [PATCH] Use the right variable for absolute path (ticket #137) - Fix the problem where rpm attempts to use the tarball as the specfile --- rpmbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmbuild.c b/rpmbuild.c index ad62a13..856798a 100644 --- a/rpmbuild.c +++ b/rpmbuild.c @@ -406,7 +406,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba) if (*specFile != '/') { char *cwd = rpmGetCwd(); char *s = NULL; - rasprintf(&s, "%s/%s", cwd, arg); + rasprintf(&s, "%s/%s", cwd, specFile); free(cwd); free(specFile); specFile = s; -- 2.7.4