From cba81e7b84f27385e254cddd065bb16c98a5d045 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Mon, 7 Oct 2013 11:59:53 +0100 Subject: 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 --- src/mktemp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mktemp.c b/src/mktemp.c index 05530a31a..074676f61 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; } } -- cgit v1.2.3-70-g09d2