From 3d64e6c805325217c751e46c4d562bc054549936 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 7 Sep 2007 10:07:17 +0300 Subject: [PATCH] Erm, doh... Backed out changeset be79b0491693 --- build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.c b/build.c index 2214559..f3c429c 100644 --- a/build.c +++ b/build.c @@ -149,7 +149,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba) (void) isCompressed(arg, &res); cmd = alloca(strlen(arg) + 50 + strlen(tmpSpecFile)); - sprintf(cmd, "%s < '%s' | tar xOvf - Specfile 2> /dev/null > '%s'", + sprintf(cmd, "%s < '%s' | tar xOvf - Specfile 2>&1 > '%s'", zcmds[res & 0x3], arg, tmpSpecFile); if (!(fp = popen(cmd, "r"))) { rpmError(RPMERR_POPEN, _("Failed to open tar pipe: %m\n")); @@ -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 - --wildcards \\*.spec 2> /dev/null > '%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")); -- 2.7.4