slusarz / dovecot-fts-flatcurve

Dovecot FTS Flatcurve plugin (Xapian)
https://slusarz.github.io/dovecot-fts-flatcurve/
GNU Lesser General Public License v2.1
40 stars 8 forks source link

Assignment bug in if statement #24

Closed darylrichards closed 2 years ago

darylrichards commented 2 years ago

Just testing this software, and found a likely bug in an if statement.

fts-backend-flatcurve-xapian.cpp, line 607:

else if (errno = ENOENT) should likely be else if (errno == ENOENT)

slusarz commented 2 years ago

Good catch. This was already fixed in the merged 2.4 code but was not backported here. Fixed in f5674d130d4c3b4e41e02e6710d28d09beb06426.