1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 08:10:15 +02:00

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
This commit is contained in:
Pádraig Brady
2013-10-07 11:59:53 +01:00
parent 0c1d7917f1
commit cba81e7b84
+2 -1
View File
@@ -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;
}
}