poeml / mirrorbrain

MirrorBrain
http://mirrorbrain.org/
Other
75 stars 37 forks source link

[PATCH] geoiplookup_city dumps core when datafile cannot be opened #138

Closed poeml closed 9 years ago

poeml commented 9 years ago
                                                                                       [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue138

Title    [PATCH] geoiplookup_city dumps core when datafile cannot be opened
 Priority   feature              Status        resolved
Superseder                      Nosy List      dagobert, poeml
Assigned To poeml               Keywords
msg486 (view) Author: dagobert Date: 2014-01-29.15:09:02

The tools geoiplookup_city and geoiplookup_contintent dump core when the datafile can not be opened. This patch terminates in a sane way when there is a problem initializing libgeoip:

https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/mirrorbrain/trunk/files/ 0001-Exit-if-geoip-file-cannot-be-opened.patch

Best regards -- Dago

msg487 (view) Author: poeml Date: 2014-01-29.21:17:55

Much appreciated, thanks! Patch applied in r8344.

History
         Date           User   Action                    Args
2014-01-29 21:17:55 poeml    set    status: unread -> resolved
                                      messages: + msg487
                                      assignedto: poeml
                                      nosy: + poeml
2014-01-29 21:05:24 poeml    set    title: geoiplookup_city dumps core when
                                      datafile cannot be opened -> [PATCH]
                                      geoiplookup_city dumps core when datafile
                                      cannot be opened
2014-01-29 15:09:02 dagobert create
(end of migrated issue)