In move prints the old name before deallocating it.

This commit is contained in:
Andrea Mazzoleni 2011-06-24 20:47:22 +02:00
parent b21b3076f6
commit 2eec5eb675

8
scan.c
View file

@ -187,10 +187,6 @@ static void scan_file(struct snapraid_scan* scan, struct snapraid_state* state,
}
}
/* remove it */
++scan->count_change;
scan_file_remove(state, disk, file);
if (state->gui) {
fprintf(stderr, "scan:change:%s:%s\n", disk->name, file->sub);
fflush(stderr);
@ -199,6 +195,10 @@ static void scan_file(struct snapraid_scan* scan, struct snapraid_state* state,
printf("Change '%s/%s'\n", disk->name, file->sub);
}
/* remove it */
++scan->count_change;
scan_file_remove(state, disk, file);
/* and continue to reinsert it */
}
}