Adds the -i, --import options to import deleted files for fix.

This commit is contained in:
Andrea Mazzoleni 2013-02-27 21:07:16 +01:00
parent 94ba44c0e7
commit 6da21cdbd9
11 changed files with 183 additions and 82 deletions

2
scan.c
View file

@ -573,7 +573,7 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in
fprintf(stderr, "You can exclude it in the config file with:\n\texclude /%s\n", sub);
exit(EXIT_FAILURE);
}
if (dd == 0 && errno == 0) {
if (dd == 0) {
break; /* finished */
}