maxmind / GeoIP2-python

Python code for GeoIP2 webservice client and database reader
https://geoip2.readthedocs.org/en/latest/
Apache License 2.0
1.11k stars 141 forks source link

database opened w/ read/write when read permissions only required #9

Closed doireallyneedanaccount closed 10 years ago

doireallyneedanaccount commented 10 years ago

The open of the database asks for 'r+b' (read/write) permissions when the mmap only requires READ permissions. Modify the open of the database to be 'rb' instead so that it will work fine.

I have made this modification and things are working fine so far.

oschwald commented 10 years ago

Thanks. I fixed this.