Dumb thinko breaking tar builds from relative paths (rhbz#456321)

This commit is contained in:
Panu Matilainen 2008-07-24 11:17:50 +03:00
parent 6df78d16a6
commit 2a44df64cf
1 changed files with 3 additions and 2 deletions

View File

@ -195,11 +195,12 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
/* Make the directory of the tarball %_sourcedir for this run */
/* dirname() may modify contents so extra hoops needed. */
if (*arg != '/') {
srcdir = dir = rpmGetCwd();
dir = rpmGetCwd();
rstrscat(&dir, "/", arg, NULL);
} else {
dir = xstrdup(arg);
srcdir = dirname(dir);
}
srcdir = dirname(dir);
addMacro(NULL, "_sourcedir", NULL, srcdir, RMIL_TARBALL);
free(dir);
} else {