diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-10-07 11:59:53 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-10-07 12:15:27 +0100 |
commit | cba81e7b84f27385e254cddd065bb16c98a5d045 (patch) | |
tree | 0b16de448198b911ff1009f9ee04a97d9232004e | |
parent | 0c1d7917f19b4865544ab9f1b13dfcdfd4e65275 (diff) | |
download | coreutils-cba81e7b84f27385e254cddd065bb16c98a5d045.tar.xz |
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
-rw-r--r-- | src/mktemp.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |