From fa7228133e7871eb29e6d174d3e3ba135b0baa86 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sat, 22 Jul 2017 17:18:15 -0400 Subject: [PATCH] Use the correct output file in error message. --- src/enchive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enchive.c b/src/enchive.c index ae78b03..5640772 100644 --- a/src/enchive.c +++ b/src/enchive.c @@ -1169,7 +1169,7 @@ command_archive(struct optparse *options) if (outfile) { out = fopen(outfile, "wb"); if (!out) - fatal("could not open output file -- %s", infile); + fatal("could not open output file -- %s", outfile); cleanup_register(out, outfile); }