aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-06 06:13:59 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-06 06:13:59 -0500
commitf9049f5f3e5e6fbd922e2f5575b45ec1e9c336ea (patch)
treeb862274b6956b7ea8db6161b39b77aaf9c405d3a
parentbd5ff2992154fe4b306d3fe6cfa1c36576fef240 (diff)
downloadalftools-f9049f5f3e5e6fbd922e2f5575b45ec1e9c336ea.tar.gz
alf: Clean up -vv output a bit, include filename in fwrite() failed message.
-rw-r--r--src/alf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/alf.c b/src/alf.c
index 0d150bd..c3e721c 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -226,8 +226,6 @@ void crunch_file(const char *filename_arg) {
this avoids leaving 0-byte turds */
if(!out_file) {
if(!opt_overwrite) make_backup();
- if(opt_append && opt_verbose > 1)
- printf(" (appending to %s) ", out_filename);
out_file = fopen(out_filename, opt_append ? "ab" : "wb");
if(!out_file) {
fprintf(stderr, "%s: fatal: ", self);
@@ -238,7 +236,7 @@ void crunch_file(const char *filename_arg) {
if(fwrite(output_buf, 1, output_len, out_file) < 0) {
fprintf(stderr, "%s: fatal: ", self);
- perror("write error");
+ perror(out_filename);
exit(1);
}