diff options
Diffstat (limited to 'mail-filter/gps/files/gps-two-dots.diff')
-rw-r--r-- | mail-filter/gps/files/gps-two-dots.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail-filter/gps/files/gps-two-dots.diff b/mail-filter/gps/files/gps-two-dots.diff new file mode 100644 index 0000000..164c205 --- /dev/null +++ b/mail-filter/gps/files/gps-two-dots.diff @@ -0,0 +1,11 @@ +--- gps-1.004/src/db.cpp.orig 2005-03-02 22:12:17.000000000 +0100 ++++ gps-1.004/src/db.cpp 2006-11-21 19:52:18.000000000 +0100 +@@ -413,7 +413,7 @@ + if(host.size() == 0) // not resolved + return string(host); + string::size_type pos = host.find('.'); +- if(pos == string::npos) // no dot in name ++ if(pos == host.rfind('.')) // less than two dots in name + return string(host); + if(WEAKRVHOSTDBG) cout << host.substr(pos) << " pos:" << pos << endl; + if(WEAKRVHOSTDBG) cout << host.substr(pos+1,string::npos) << endl; |