From 2718ebef0c3a1dcaab74b567ba5726a9fa20fcdb Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 7 Dec 2025 02:29:59 -0500 Subject: alf -vv: say "Created" if trying to append to a file that doesn't exist. --- src/alf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/alf.c b/src/alf.c index 4144d65..12f1608 100644 --- a/src/alf.c +++ b/src/alf.c @@ -236,6 +236,9 @@ void crunch_file(const char *filename_arg) { perror(out_filename); exit(1); } + /* so -vv will correctly say "Created" if trying to append to + a non-existent file. */ + if(ftell(out_file) == 0) opt_append = 0; } if(fwrite(output_buf, 1, output_len, out_file) < 0) { -- cgit v1.2.3