delete wisps, or any other border that can be read but not written

This commit is contained in:
Enno Rehling 2012-05-21 17:46:32 -07:00
parent a45eb53191
commit 1b038a7eaf
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ int read_borders(struct storage *store)
if (result < 0)
return result;
}
if (!type->name || !to || !from) {
if ((type->read && !type->write) || !to || !from) {
log_warning("erase invalid border '%s' between '%s' and '%s'\n", type->__name, regionname(from, 0), regionname(to, 0));
erase_border(b);
}