From 6b6895f8e5ac942a6846780f54aac23a58eb66b6 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 28 Apr 2011 23:17:06 +0200 Subject: [PATCH] Fixes the file name printed in checking. --- check.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/check.c b/check.c index 03912e53..e6500871 100644 --- a/check.c +++ b/check.c @@ -317,8 +317,10 @@ static int state_check_process(struct snapraid_state* state, int fix, int parity } /* check if it's a larger file, but not if already notified */ - if (!file_flag_has(block_file_get(block), FILE_IS_LARGER) && handle[j].st.st_size > block_file_get(block)->size) { - fprintf(stderr, "File '%s' is larger than expected.\n", handle->path); + if (!file_flag_has(block_file_get(block), FILE_IS_LARGER) + && handle[j].st.st_size > block_file_get(block)->size + ) { + fprintf(stderr, "File '%s' is larger than expected.\n", handle[j].path); /* if fragmented, it may be reopened, so store the notification */ file_flag_set(block_file_get(block), FILE_IS_LARGER);