From f9049f5f3e5e6fbd922e2f5575b45ec1e9c336ea Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 6 Dec 2025 06:13:59 -0500 Subject: alf: Clean up -vv output a bit, include filename in fwrite() failed message. --- src/alf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3