aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-26 16:09:13 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-26 16:09:13 -0500
commit0199d360d393c6b9cd58d53dcae9c10d6901d47a (patch)
tree6054514bc9e4ffc0e37193832ca0a546d68bf5ef
parent149441e5905ddacd5f771deb56a10f3b7c05f1fe (diff)
downloadunalf-0199d360d393c6b9cd58d53dcae9c10d6901d47a.tar.gz
alf: Fix error message when we can't open the output file.
-rw-r--r--src/alf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alf.c b/src/alf.c
index bc38dd0..4fca2f3 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -343,7 +343,8 @@ int main(int argc, char **argv) {
out_file = fopen(out_filename, opt_append ? "ab" : "wb");
if(!out_file) {
- perror(*argv);
+ fprintf(stderr, "%s: fatal: ", self);
+ perror(out_filename);
exit(1);
}