aboutsummaryrefslogtreecommitdiff
path: root/src/alf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alf.c')
-rw-r--r--src/alf.c3
1 files changed, 3 insertions, 0 deletions
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) {