diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-06 06:13:59 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-06 06:13:59 -0500 |
| commit | f9049f5f3e5e6fbd922e2f5575b45ec1e9c336ea (patch) | |
| tree | b862274b6956b7ea8db6161b39b77aaf9c405d3a | |
| parent | bd5ff2992154fe4b306d3fe6cfa1c36576fef240 (diff) | |
| download | alftools-f9049f5f3e5e6fbd922e2f5575b45ec1e9c336ea.tar.gz | |
alf: Clean up -vv output a bit, include filename in fwrite() failed message.
| -rw-r--r-- | src/alf.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } |
