From: marc Date: Mon, 2 Feb 1998 15:34:36 +0000 (+0000) Subject: Fix return code handling X-Git-Tag: rpm-4.4-release~3777 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fc5557ba49b82434bc5b23e5dee6e69ebd07609;p=platform%2Fupstream%2Frpm.git Fix return code handling CVS patchset: 1981 CVS date: 1998/02/02 15:34:36 --- diff --git a/build/parsePrep.c b/build/parsePrep.c index 556a2f2..df22013 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -259,8 +259,9 @@ static char *doUntar(Spec spec, int c, int quietly) if (compressed) { sprintf(buf, "%s -dc %s | tar %s -\n" - "if [ $? -ne 0 ]; then\n" - " exit $?\n" + "STATUS=$?\n" + "if [ $STATUS -ne 0 ]; then\n" + " exit $STATUS\n" "fi", rpmGetVar(RPMVAR_GZIPBIN), file, taropts); } else {