From: Pádraig Brady
Date: Mon, 7 Oct 2013 10:59:53 +0000 (+0100) Subject: mktemp: fix incorrect exit status from previous commit X-Git-Tag: v8.22~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba81e7b84f27385e254cddd065bb16c98a5d045;p=thirdparty%2Fcoreutils.git mktemp: fix incorrect exit status from previous commit * src/mktemp.c (main): Use an exit() strategy consistent with the previous clauses dealing with optional error messages to ensure we exit with the correct status in all cases. Prompted by the continuous integration build failure at: http://hydra.nixos.org/build/6412979 --- diff --git a/src/mktemp.c b/src/mktemp.c index 05530a31af..074676f615 100644 --- a/src/mktemp.c +++ b/src/mktemp.c @@ -335,7 +335,8 @@ main (int argc, char **argv) int saved_errno = errno; remove (dest_name); if (!suppress_file_err) - error (EXIT_FAILURE, saved_errno, _("write error")); + error (0, saved_errno, _("write error")); + status = EXIT_FAILURE; } }