Pass --wildcards to tar on build (rhbz#206841)

Tar no longer accepts globbing by default as it's incompatible with
traditional implementations:
http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00001.html

Rpm needs to work with upstream tar really, the --wildcards option has been
supported since 2001 so older versions shouldn't suffer either.
This commit is contained in:
Panu Matilainen 2007-07-03 14:13:13 +03:00
parent 6fcff4422a
commit 39defaa877
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
/* Try again */
(void) pclose(fp);
sprintf(cmd, "%s < %s | tar xOvf - \\*.spec 2>&1 > %s",
sprintf(cmd, "%s < %s | tar xOvf - --wildcards \\*.spec 2>&1 > %s",
zcmds[res & 0x3], arg, tmpSpecFile);
if (!(fp = popen(cmd, "r"))) {
rpmError(RPMERR_POPEN, _("Failed to open tar pipe: %m\n"));