Erm, doh...
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Sep 2007 07:07:17 +0000 (10:07 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Sep 2007 07:07:17 +0000 (10:07 +0300)
Backed out changeset be79b0491693

build.c

diff --git a/build.c b/build.c
index 2214559..f3c429c 100644 (file)
--- 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"));