bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
ad9afb64630511d5e25bc5bc11c5304986156928 |
|
30-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replace o_stream_nfinish() with o_stream_finish() whenever possible |
a943ed0f901e312445fd393249b91932797bba79 |
|
03-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_close_fd{,_path}() instead of open-coding them |
7b032348d7bbb93ff96188289d3dfc1899b9abb3 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on i_close_fd(-1) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != -1)
- i_close_fd(&E);
+ i_close_fd(&E); |
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3 |
|
17-Jan-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
dict-file: Fix potential crash when doing other dict calls during iteration.
If file was refreshed, the hash table was cleared, which broke the existing
iterators. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
262eeae35ee285981b37294628ec8d054daa1b23 |
|
13-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
dict-file: Don't leak a lock on temp file creation failure. |
9a382894724292e2af60ef94fc471d761f45e5d5 |
|
17-Jul-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Added enum dict_commit_ret. |
ade5567577dadb0b275c840208d3ad21a9f00a36 |
|
20-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Explicitly specify used dict_vfuncs methods for drivers.
This allows adding more methods without modifying all the existing drivers. |
a5ec9755556e3d97d7e6d78cb1b53046370e6598 |
|
20-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Added dict_switch_ioloop() |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
c224fff79d18480a65e9b4504b891b8ea176f5b1 |
|
03-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use hash_table_update() instead of _insert() where necessary. |
661998e2ccd772ad92a9d4a75cb712692a8c94b3 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_transaction_commit*() returns now error string |
c2a66e7950cb4d3fc4d68e4480ea8f39bdd7c871 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Changed internal transaction_commit() to return void
Somewhat simplifies the code now that it doesn't have to both call a
callback and return the same ret. |
055389c58fa3915e12fb4e72ec86782ce77c5c72 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_iterate_deinit() returns now error string |
b5052fbfdbc2678cc8f12899afe55c998f43b740 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_lookup() returns now error string |
3fd02e831c32598deda589ae536fdaa4022d9750 |
|
29-Apr-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-dict: Further remove APPEND |
373b27178af59c8579967c126e7c2c002974d095 |
|
21-Apr-2016 |
Baofeng Wang <baofeng.wang@dovecot.fi> |
lib-dict: remove dict_append()
Remove all *_dict_append and redis_append functions and corresponding
command from lib-dict. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
3bc62efe513ebc7450cffe9a4e8f0b07424bf190 |
|
16-Dec-2015 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Improve EACCES error logging for dict-file. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
d694b6009574ee6e3cfaee3834cbdbcd431affb0 |
|
02-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Added async API for lookup and iteration. |
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of strtoll() and friends. |
76b4207273534f71365bc7f900c23a5160692802 |
|
11-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Added DICT_ITERATE_FLAG_EXACT_KEY flag.
This is mainly useful with SQL for iterating through a result that has
multiple rows. |
1f366614aaafcc9496ff85b25988f19c3254ab7c |
|
14-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
dict-file: Use tabescaping for keys and values to allow LFs in them.
Although this makes the format slightly incompatible, it's doubtful anybody
is using dict values containing \001 characters. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
c85f661daf164687fc5af22d74902f94c26597d0 |
|
06-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Fixed race condition in mkdir()ing dict file's parent directory. |
a6a6ad107e509cf8952a28f740eb2023284497b9 |
|
28-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
lib-dict: file backend now expands ~/ paths if home_dir setting is set. |
39ea5717264668e2c7f9f7986eb821d21785f47f |
|
28-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Changed dict.init() API to take struct dict_settings and added dict_init_full().
This allows giving more settings to dict in future as needed. Unfortunately
it also breaks the internal dict API, but there aren't really any plugins
widely using it, so it's not a big problem. |
62ff6002b1e37a42303c2c0107f324860232e204 |
|
04-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Removed NFS flushing from dict-file backend. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
97943a36e08923d625898f5ca8ffd38325a3986d |
|
12-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
dict-file: Automatically mkdir missing parent directories if they don't exist. |
c73415e93ecf1c699ef054d2b179b10976fa23f3 |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
eca38954bcf972618f6b85932a3690acbd2b673a |
|
13-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-dict: dict_init() now returns error string instead of logging it |
8f2eb1ee9ec07661bd50275da99b5f351972a49a |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Fixed error handling on initialization. |
dc599de6096c51e6c922e069bfbbcb7d68c50ffa |
|
16-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
lib-dict: Previous API change broke dict_init() |
10399559650f552a23949772be79eb6a80198c5a |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
dict_init() API changed to return int. |
3350b29fce44f8bc8fa015dad57024a8de301d38 |
|
28-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
dict file: Fixed corruption with large values.
Patch by Ewald Dieterich. |
a75d470c9223a75801418fcdda258885c36317e0 |
|
20-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Reverted "support for non-pointers" part of the hash table API changes.
Originally I wrote it using clang, which didn't give as many warnings as gcc
did. I guess this way is safer anyway.. |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
7536dca18968a279b69c685eedda205bee228fd4 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
hash_table_create(): Removed table_pool parameter.
Every single caller was using default_pool there, so there's no point in
having it. |
8bf42ce5ef783b96a2ded67524173e95e9b45ada |
|
15-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Moved "in-memory transaction" code from dict-file to more generic API. |
2aed6c2062317d1750f59c5c88e77d9f10967462 |
|
14-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
dict: Implemented dict_append() |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream. |
efd9d73a7fba2830431aa1186fd65372f6631399 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
dict file: Don't ignore write failures. |
c719f74d3fd41d9b9fea0edaea1e00ab90da72dc |
|
11-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
dict file: Fixed assert-crash with fcntl/flock lock method. |
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdace |
|
10-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
dict file: Bugfix for previous lock change and changed its configuration syntax. |
f739c92a9237db03327dc82e3792e39c160a1e4d |
|
10-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
dict file: Optionally use fcntl/flock locking, instead of dotlocks. |
dba8af1faaf9fd3957254bb6f2234b285f77096f |
|
22-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Increased initial memory pool sizes. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
f323e3f0de9841f399aba5919e3f25652a88fa65 |
|
20-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
dict-file: Updated dotlock settings. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
add4be35a949fcfa67da15faf64ee0e8c163e648 |
|
22-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
dict-file: Don't leak fd on deinit. |
e5ff2112aea089f3de2badf9b1635677791d1384 |
|
16-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
dict file: Get file's initial permissions based on parent directory.
--HG--
branch : HEAD |
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7 |
|
18-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
dict: Added dict_iterate_init_multiple().
--HG--
branch : HEAD |
8d25b6ad05b99e75613cb045a121efd51e6afbb6 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-dict: Changed dict_iterate API.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--HG--
branch : HEAD |
7bd72e4deca3cbf757dd1ea298486d9f3bc24226 |
|
02-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_foreach() more.
--HG--
branch : HEAD |
3954326e793bdef1e94e0ad781ed6cc7e48beebb |
|
07-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
dict: Added support for async commits. Changed dict_atomic_inc() behavior.
--HG--
branch : HEAD |
4073f0dbf3277f981a8fcee3b89ea15aaf380a7f |
|
28-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
dict proxy: Use base_dir as the default dict-server location.
--HG--
branch : HEAD |
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35 |
|
01-May-2009 |
Timo Sirainen <tss@iki.fi> |
dict-file: When replacing the dict file, preserve its permissions.
--HG--
branch : HEAD |
abc3baef9960cf3024c0ba711db51735c271154c |
|
30-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
dict-file: If file_dotlock_open() fails, log also the path.
--HG--
branch : HEAD |
a77ee6e009d6fa63437ed36187fa379ddcf00ddb |
|
27-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
dict file: Compiler warning fix.
--HG--
branch : HEAD |
3c63c219ae7854b4f1d44a671a65572aa242cbcf |
|
19-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
dict-file: Fixed a crash.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
3ccab0bac68040f179a7de45c516cec258e28fdb |
|
19-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed hash_*() to hash_table_*() to avoid conflicts with OSX's strhash.h
Based on patch by Apple.
--HG--
branch : HEAD |
8ad53e0bb29f61350f608fc519210f2442c20775 |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Iteration was broken in dict-file.
--HG--
branch : HEAD |
313c43343f711f04a8d4d1f8dd21aaab5c16b2d2 |
|
05-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
dict-file: Minor optimization when writing the file.
--HG--
branch : HEAD |
0e881a691e6d2d2836d923ef3e92b14aeda60f0d |
|
29-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes
--HG--
branch : HEAD |
e3fabe8d0faa9aab7cae2d0eee9653f581a3061d |
|
19-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Added a simple flat file dict backend.
--HG--
branch : HEAD |