--- DBBasedAddrList.pm.orig 2007-08-17 21:19:56.000000000 -0500 +++ DBBasedAddrList.pm 2007-08-17 21:21:18.000000000 -0500 @@ -74,6 +74,11 @@ $self->{locked_file} = $path; $self->{is_locked} = 1; ($mod1, $mod2) = ('R/W', O_RDWR | O_CREAT); + if ( -e '__db.' . $path) { + #remove db_file temp files as they will cause an loop + #this should be ok as we have already obtained an exclusive lock + unlink('__db.' . $path); + } } else { $self->{is_locked} = 0;