add a --ignore-errors option

This commit is contained in:
Andrew Tridgell
2000-03-21 04:06:04 +00:00
parent 5f7ce2041c
commit ef55c686bc
4 changed files with 17 additions and 3 deletions

View File

@@ -108,13 +108,14 @@ void delete_files(struct file_list *flist)
int i, j;
char *name;
extern int module_id;
extern int ignore_errors;
extern int max_delete;
static int deletion_count;
if (cvs_exclude)
add_cvs_excludes();
if (io_error && !lp_ignore_errors(module_id)) {
if (io_error && !(lp_ignore_errors(module_id) || ignore_errors)) {
rprintf(FINFO,"IO error encountered - skipping file deletion\n");
return;
}