geoipupdate.sh provided from net/GeoIP, produced from files/geoipupdate.sh.in, don't update GeoIP.dat atomically. It clears original file by using shell redirect (>), then download and gunzip to it. So, if other process try to use it while updating, the process will see broken data. Fix: fetch GeoIP.dat.gz and gunzip it as filename other than GeoIP.dat in the same file system, then rename(2) to GeoIP.dat. Patch attached with submission follows: How-To-Repeat: run /usr/local/bin/geoipupdate.sh as root
Responsible Changed From-To: freebsd-ports-bugs->dhn Over to maintainer (via the GNATS Auto Assign Tool)
Created attachment 143349 [details] Updated patch to fix problem Update previous patch to merge with Bug 187906.
I had no idea this PR was out there! I maintain GeoIP now, so I'm taking this PR and I'll get that patch committed very soon.
Committed with small modifications in r362534. Thank you for submitting this!