Description of problem: GeoIP_database_info is not returning full string from database Version-Release number of selected component (if applicable): GeoIP-1.6.9-2.fc24.x86_64 (from FC25 repo) How reproducible: always Steps to Reproduce: 1. create C code and call+print GeoIP_database_info Actual results: $ md5sum GeoIP.dat 2d2203d8938c35f4ea65e03ec15ad1f5 GeoIP.dat $ ./a.out GeoIP_database_info=GEO-106FREE 20160607 Build 1 Copy Expected results (CentOS 7 with GeoIP-1.5.0-11.el7.x86_64) $ md5sum GeoIP.dat 2d2203d8938c35f4ea65e03ec15ad1f5 GeoIP.dat $ ./a.out GeoIP_database_info=GEO-106FREE 20160607 Build 1 Copyright (c) 2016 MaxMind Additional info: C-Code: #include "GeoIP.h" #include "GeoIPCity.h" #include <stdio.h> int main() { GeoIP *gi = NULL; char *filename = "./GeoIP.dat"; gi = GeoIP_open(filename, GEOIP_STANDARD); printf("GeoIP_database_info=%s\n", GeoIP_database_info(gi)); GeoIP_delete(gi); } compiled with gcc -l GeoIP test_geoip.c strings of /usr/share/GeoIP/GeoIP.dat shows full string
GeoIP-1.6.9-4.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f8a9655a1c
GeoIP-1.6.9-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d8033000d4
Only fixing GeoIP.dat, but there are still issues on others: GeoIP-1.6.9-4.fc25.x86_64 sligthly extended test program: #include "GeoIP.h" #include "GeoIPCity.h" #include <stdio.h> int main() { GeoIP *gi = NULL; char *filename; filename = "./GeoIP.dat"; gi = GeoIP_open(filename, GEOIP_STANDARD); printf("file=%s GeoIP_database_info=>%s<\n", filename, GeoIP_database_info(gi)); GeoIP_delete(gi); filename = "./GeoIPv6.dat"; gi = GeoIP_open(filename, GEOIP_STANDARD); printf("file=%s GeoIP_database_info=>%s<\n", filename, GeoIP_database_info(gi)); GeoIP_delete(gi); } file=./GeoIP.dat GeoIP_database_info=>GEO-106FREE 20160607 Build 1 Copyright (c) 2016 MaxMind < file=./GeoIPv6.dat GeoIP_database_info=>GEO-106FREE 20161004 Build 1 Copy< GeoIP.dat info has now a trailing space... => https://github.com/maxmind/geoip-api-c/pull/80 was not a generic fix of the problem...
Best bet would be to raise this on the upstream tracker on GitHub and talk to the developers themselves rather than going through me. That'll get it fixed quicker.
Issue filed https://github.com/maxmind/geoip-api-c/issues/85 and also it turned out that it is caused by newer database files...let's wait for upstream comments on this very strange problem.
GeoIP-1.6.9-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d8033000d4
GeoIP-1.6.9-4.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f8a9655a1c
GeoIP-1.6.10-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f8a9655a1c
GeoIP-1.6.10-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d8033000d4
GeoIP-1.6.10-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d8033000d4
GeoIP-1.6.10-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f8a9655a1c
GeoIP-1.6.10-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
GeoIP-1.6.10-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.