diff options
| -rw-r--r-- | src/alf.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |
