bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
39454303866b345d010f024e86adbd2f0fa66692 |
|
18-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Fix using failure_context.log_prefix with internal log process communication |
2f366ea2725490208d4a163533a2c90757608849 |
|
18-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
log: Add "disable log prefix" flag to log lines |
982c30abd049087ce8b2fd44769561441e074961 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add failure_context.log_prefix to override the default |
8009758e97922663d9a375a52efe044c8fe4d462 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_log_typev() |
86ec225534ca0e042149eab2458a2a9720db09ae |
|
27-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Make sure panics/fatals don't recurse into loops |
19557f192d37cd54a1a090a8a26d9d47265e4413 |
|
01-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Fix spelling mistakes in comments
Original work by @andreasschulze and @jsoref |
1ef9fe877817de76eb38883ccf3833fae60e6865 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: stop including fd-set-nonblock.h & fd-close-on-exec.h directly |
12c57531519d66e237e865c6ee3f7eadfe148550 |
|
05-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Remove dead code
Found with clang static analyzer. |
9372e48b702a3af5705785e08fbf47b0e37f2047 |
|
21-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: If log writing to log process is blocking, show it in process title
This change also makes the log pipe non-blocking. |
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)" |
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/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
d894bcdc712e5c45ce62797fb4487278d824e6d1 |
|
06-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added i_get_failure_prefix() |
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> |
482c0b9cbddf280256c1104cd9e75bebae8b88a1 |
|
06-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
Minor code cleanup to previous change.
No need to have a data stack frame here. |
d4f004105cd7159aa9ade6b019eaecce9e94f382 |
|
06-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
log_timestamp setting supports now %{usecs}
This is mainly useful for debugging. |
e9baf4071a4a0f45c1c6e78c70fc6ec6f1ca1893 |
|
04-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: failures - cosmetic write_full cleanup
Error message should have a trailing newline.
Use the POSIX macro for stderr's file number, rather than its numeric value.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
e173d24c0b3f444eaa4d461de8f7c28b9ea3c65c |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
Renamed DEBUG_OUTOFMEM environment to CORE_OUTOFMEM. Added CORE_ERROR to dump core on the first error. |
077ab4470660b791c2b76eb4bb5663bbafc8177f |
|
03-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
If DEBUG_OUTOFMEM environment is set, abort() on "out of memory" errors. |
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. |
ca4526e3b5fbf5ea3dd477a2098522a44c9ac52c |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
i_set_failure_prefix() now takes printf-like parameters.
This avoids using t_strdup_printf() with it, which was done very commonly. |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
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. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
7cecac4162776ac996a7cf3f4604bb5327d923d6 |
|
06-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
liblib: Added failure_log_type_names[] array. |
986ca1cb9eedc1b5c91dbbd6ccd8d81fb468673c |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Added i_set_failure_send_prefix() and renamed i_set_failure_ip() to _send_ip(). |
90a2e2616af7b83696ace60c1102f3661229918a |
|
30-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
liblib: Don't try to send a log prefix to log process if there is none. |
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. |
fc2a751e24043843b807e9fce18dec2bfd8b8de1 |
|
09-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
liblib: Delay sending log prefix updates until it's needed.
This avoids sending them unnecessarily. |
8882cee80439046d678f08c52f0584bd92c7d361 |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
Failure logging supports now getting timestamp as parameter. |
2303ad68175883aaebd1f3b18e69593c2422c7bb |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
Cleaned up log callbacks and made them more extensible.
fatal_failure_callback_t type is now gone, there's only failure_callback_t
left that has a struct pointer as parameter. More parameters can be easily
added to the struct in future. |
ad7abd5b9371e967975bcd2217c01455cc9e56cd |
|
14-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
When writing to logs, ignore write()=EINTR failures from non-terminal signals.
The previous code failed after 3 successive EINTRs, which was possible if
the process got a lot of signals (e.g. master process getting lots of SIGCHLD
signals). |
81333312b6be6cdf054959f519544fddfe350a6e |
|
11-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Logging lines longer than PIPE_BUF caused an extra empty line to be logged.
--HG--
branch : HEAD |
71794409a7804448fc316450247593155c097c9b |
|
29-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Syslog messages now contain Warning:, Error: and Debug: prefixes also.
So everything except Info: now has a prefix.
--HG--
branch : HEAD |
18722dd1c05fdf3f47ec9dcd910bebbdb87684ac |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Reversing accidentally committed debug code.
--HG--
branch : HEAD |
d7b81a1e17f5b115cb1b36bf6c6f64295e357dc2 |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Improved setgid/setuid failure's error message.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
e8e48eb011b5c74a43a4d0c4a133b6e517b09a5b |
|
16-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Don't use static sized buffers for writing log open failure errors.
--HG--
branch : HEAD |
af208f4a43a81a39a2ec44e68d65d12b95f1b386 |
|
28-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Minor memory allocation tweaks.
--HG--
branch : HEAD |
397e389715d49a8abfe078e3f7141f63960d412d |
|
05-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
If info/debug log can't be opened, log about it to error log.
--HG--
branch : HEAD |
f5e1d3d6b34ec152aa1ff15c7bd3d3552e9227ea |
|
30-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Added debug_log_path setting and i_debug() call.
Patch by Pascal Volk.
--HG--
branch : HEAD |
b5f3c378bcb0df052f8d46ace0945e8cc1d2140e |
|
09-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Logging via log service: Added support for changing process's log prefix.
--HG--
branch : HEAD |
b547a4e327dc376b8fb1b50eb587d4f63d62365d |
|
05-May-2009 |
Timo Sirainen <tss@iki.fi> |
Added i_get_failure_handlers().
--HG--
branch : HEAD |
9c8f854d95d8d895022a75f140a0a500eb200d39 |
|
05-May-2009 |
Timo Sirainen <tss@iki.fi> |
Removed LOG_TYPE_ERROR_IGNORE_IF_SEEN_FATAL. It's no longer necessary.
--HG--
branch : HEAD |
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76 |
|
24-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for v2.0 master rewrite. Several features are still missing.
--HG--
branch : HEAD |
144bd6fe420f99ab07f0deae4decce7c527a9c68 |
|
21-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Removed accidentally committed debug warning.
--HG--
branch : HEAD |
d1fff80640050631b06bfab904a34b2ad24601e8 |
|
21-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Pass remote/local IPs to mail_users. Standalone mail programs now log with mail_log_prefix.
--HG--
branch : HEAD |
712d5a264c79ed36b55dbe9d5f37c66bf484858f |
|
18-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
If log write() fails because of EINTR, try again 2 more times.
--HG--
branch : HEAD |
2421fd34d51fed6da985c62b5e078d7e96640653 |
|
10-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
pop3/imap: When master closes our log fd, don't die when trying to log disconnect reason.
--HG--
branch : HEAD |
be0185d71b19869700ac936fa9d09fb4ce950ae3 |
|
14-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
If login process crashes, log the IP address that (maybe) caused it.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
bb3d09ab39d75ca5269723237f4e0eeec916b534 |
|
15-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Logging: Support specifying a prefix also for syslog logging.
--HG--
branch : HEAD |
fdf83bdccb4b06a696f905100327539327b15b67 |
|
29-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
If logging failed to info log, try to log a failure to error log if it's elsewhere.
--HG--
branch : HEAD |
834b4fa01b4bfcde3d6449b217cf3e1f5b45b190 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
Logging: Make sure we don't recurse infinitely when running out of memory.
Also cleaned up the logging handlers' code a bit.
--HG--
branch : HEAD |
55804e9eb14ab16e5bb3c83ba675f9fa321fe3a9 |
|
07-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
If writing to log failed with EAGAIN (shouldn't normally happen), waiting
for the log fd to be writable again was buggy.
--HG--
branch : HEAD |
16eda5600ef94cd3838402bc7b920ac63c883d53 |
|
28-May-2008 |
Timo Sirainen <tss@iki.fi> |
Print raw backtrace when dying with out-of-memory (with all log backends).
--HG--
branch : HEAD |
44220d35fa2e456ab6702f80ad71bc9fb249cdcd |
|
15-May-2008 |
Timo Sirainen <tss@iki.fi> |
"Can't open log file" error was missing linefeed.
--HG--
branch : HEAD |
d07bce19c3fa1cf27557512aee49cd55168c62ce |
|
11-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Log raw backtrace when dying with "out of memory" error
--HG--
branch : HEAD |
2da9259b98be1dbe10f370c4c88a6154acdff943 |
|
05-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Prefix fatal/panic messages with syslog.
--HG--
branch : HEAD |
04f0944b16374064e8d657f3925082a2613da4b9 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Default failure functions are now public.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
a04b6515c20b431294626400e173d81f3d25889b |
|
27-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes on 32bit systems.
--HG--
branch : HEAD |
4fc7d319feff84edde8c5899a401a4c98ba72cfb |
|
27-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Make failure_log_type_prefixes[] and failure_exit() public.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
7fb80bfee23825f544a2c22717da14f7b162a6d2 |
|
12-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Fix to last logging changes.
--HG--
branch : HEAD |
6d4b59702f5699a94bfa29eaf3041acce2376f0f |
|
11-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Use write()s instead of FILE streams to write to logs.
--HG--
branch : HEAD |
0538f91db523f714296de783cd6655414b26d27d |
|
09-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Changed failure callbacks to take failure type parameter, so it's no longer
necessary to have separate panic and warning callbacks. Added i_log_type()
function to log a message with any type (even fatal/panic without dying
ourself).
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
091e7843d8a607483f5252d2f44bb0c7dc81c583 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If log flushing fails because of EINTR or EAGAIN, handle them instead of
exiting.
--HG--
branch : HEAD |
5dd05e966ffd69181ab3067f6939b03ced68ebc3 |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Require C99 compatible vsnprintf(). Removed printf_string_upper_bound() and
replaced the code with printf_format_fix*() and vsnprintf().
--HG--
branch : HEAD |
402f9183489c1a75736b1e9068c33fe2741a366d |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed printf_string_fix_format() to printf_format_fix() and moved it to
its own file.
--HG--
branch : HEAD |
d1e745621ce2b236bf65390aacc64c4746088887 |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Use printf_string_fix_format() instead of printf_string_upper_bound() to
convert %m and verify that %n isn't used.
--HG--
branch : HEAD |
48bd0aed38affdad9d157c7fa409d70230ec96fb |
|
18-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added i_set_failure_prefix()
--HG--
branch : HEAD |
5eb35e99143c63d804831c8b925afe2dc24feae7 |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
i_set_failure_file() no longer automatically appends ": " to log prefixes.
--HG--
branch : HEAD |
3cdc4dcbd236693be39ace392a0c7436936f91b4 |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added missing LF from error message
--HG--
branch : HEAD |
fbbbd8e9dd61870a1d6cc785ca37d40ab5c4576c |
|
08-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Moved errno preserving to i_error/i_warning/i_info from the failure handler,
so each failure handler doesn't have to do that itself.
--HG--
branch : HEAD |
ce103d6bbe240c5e9251247825b74356a5421dc9 |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added i_set_failure_exit_callback()
--HG--
branch : HEAD |
3574a9ba6b5cd84a6d757324098eaa40cf20b946 |
|
19-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
If we can't open the log file, write the error to stderr instead of relying
on the existing fatal handler which may not do anything.
--HG--
branch : HEAD |
b1ea8d3913eab1b7dd793f33b45ebb5389460f96 |
|
22-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
s/Backtrace/Raw backtrace/
--HG--
branch : HEAD |
7ba4c0608e32d0cc8a8600cb8b9987b2b56e2bf8 |
|
19-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Since getting core dumps can be sometimes difficult, if we now do abort()
ourself, we first log the backtrace. This works at least with Linux and
Solaris.
--HG--
branch : HEAD |
33f6ebc6d602da932ff8c4c1b9c8292caf222913 |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Added some __attr_format__ attributes to functions.
--HG--
branch : HEAD |
6a058aa8c986a8fbec5ddd72c141db9df0b64b2d |
|
01-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Added sentinel GCC attribute to *_strconcat() functions. Added
format printf-attribute to vprintf-type functions.
--HG--
branch : HEAD |
a9e73c0ed3ad73c6d2eb0c25fe4f84f595b61762 |
|
02-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
If writing to log file fails, restore errno before %m is used. Although the
log writing most likely fails anyway at that point, but at least strace logs
show it right. :)
--HG--
branch : HEAD |
b461f35f91cb6ecdb673092cc30406360d528d8b |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if reopening log file without separate info log file.
--HG--
branch : HEAD |
41062ccab36f31f345e9b9f3198547c4c2096314 |
|
03-May-2005 |
Timo Sirainen <tss@iki.fi> |
Added i_free_and_null() macro and first use case.
--HG--
branch : HEAD |
647d32fa263de5e03a7a38898777fb49b5774762 |
|
09-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
When i_set_failure_file() is called, make sure the handlers are reset back
to defaults.
--HG--
branch : HEAD |
316dad8277db6575354eba30d3fc7a1c0447c513 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
Write all logging through master process. Fixes problems with log rotation,
chrooting, etc. Master process also allows max. 10 log messages per second
per child process, it then begins throttling them (eventually making the
child process start blocking on stderr).
--HG--
branch : HEAD |
fc34e919907845ce01ad04aa8213033596a1ae70 |
|
08-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
Call printf_string_fix_format() only when printf_string_upper_bound() sees
%m.
--HG--
branch : HEAD |
5e0ce63bb65db34d7f48b34bbb5545fa791781c4 |
|
26-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Removed most of the license comments from src/lib/*.c. It's just fine to
keep them in a single COPYING.MIT file. Changed a few other comments as well.
--HG--
branch : HEAD |
d689030d28040a8dfc9ec9be00340fadb2342a01 |
|
04-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
Log using current time, not ioloop_time.
--HG--
branch : HEAD |
546c14e1feeb9ff426267ac4209762ae7b4478c0 |
|
10-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Free memory at exit
--HG--
branch : HEAD |
5dd094cb758ac7c9218e7e6bfde6c86f77305a5a |
|
04-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Handle /dev/stderr directly instead of open()ing.
--HG--
branch : HEAD |
7c424aa51c956c628e3512055841aa2f9eef4833 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Function typedefs now define them as functions, not function pointers.
--HG--
branch : HEAD |
f923659c0e5298263d80622c99f4dc4132b4675b |
|
11-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming change for function typedefs.
--HG--
branch : HEAD |
7b98bdd4da1a3c9396304dc6c1baf02f59eb3392 |
|
28-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
In case of internal errors in logging, exit() with FATAL_LOGERROR.
--HG--
branch : HEAD |
6defed8fef1781cb1d34353784232e87c19f173b |
|
27-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
We weren't using va_list properly, especially gcc/PowerPC didn't like it.
--HG--
branch : HEAD |
0f66eea90abef6142793eb10556e9bf9db6a70fa |
|
22-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
info log was broken
--HG--
branch : HEAD |
e1e5b1f4ada9d9b4d36edeaf1c5229be90b12815 |
|
22-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
String function cleanups. Allocating 0 bytes of memory is treated as error
now, it could be an integer overflow. Moved printf_string_upper_bound() to
it's own file, so strfuncs.c can be with MIT license.
--HG--
branch : HEAD |
285e9c17010b50f0ebfb291824bf65343b8da58b |
|
22-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Don't leak data stack memory.
--HG--
branch : HEAD |
0c9754d1cf2ba0ff7873b6baa614ca10051a08fd |
|
22-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Use vsnprintf() always when possible, even if we went through the
upper_bound function. DEBUG message in data stack might have sometimes
caused an infinite loop. Made sure infinite loops don't happen anymore with
failure handlers. str_printfa() didn't handle %m. Made my_vsyslog() a lot
simpler, since t_strdup_printf() is now safe enough to call in failure
handler.
--HG--
branch : HEAD |
975ed4baf5fabe2c063c8dd1b9140f6d263797c9 |
|
21-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Compile with -Wformat-nonliteral now. Found a format string bug with it :(
But lucky for us, we haven't allowed %n in format strings for a few months
now and those bugs were added after that. So arbitrary code execution
vulnerabilities count is still zero :)
--HG--
branch : HEAD |
65497fd5c3efa66319a1486addb272413403653a |
|
20-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added info_log_file setting and i_info() function to write to it. Default is
the same as failure log. Currently only logged information is client logins.
--HG--
branch : HEAD |
aff95d423ca04ac801d55bbb3e29cc18d630f97a |
|
18-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Drop root privileges earlier. Close syslog more later in imap-master when
forking new processes, so that any errors get logged. Make sure that all
errors show up in log files - use specific exit status codes if we can't
write to log file. Make sure imap and login processes always drop root
privileges even if master process didn't ask for it for some reason.
putenv() wasn't verified to succeed - luckily we never allowed large user
given data there.
--HG--
branch : HEAD |
e0f65ae5ab5c991bc5ba64ef549e0a8e4b43d20a |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Set close-on-exec flag to failure log, /dev/urandom fd already tried to do
that but did it wrong.
--HG--
branch : HEAD |
3be78df49767e445cd34d04c4cf8f3422ee47a83 |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
bugfix
--HG--
branch : HEAD |
4ab241b53ca443527c7da315fa25566ac59fd562 |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Changed so that we can use the functions before calling failures_init().
--HG--
branch : HEAD |
8cd74cad9a59837fe23ef7be7a3a9a783a20d05f |
|
04-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Added printf_string_fix_format() which currently just replaces %m with
strerror(errno). i_panic, i_fatal, i_error and i_warning didn't expand the
%m before when not writing to syslog.
--HG--
branch : HEAD |
1d9f94199ff5c49cf9df18fd0c9eb85c0fb77a6c |
|
20-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Removed several useless handers of printf_string_upper_bound(), and added a
few configure checks it required. That function could use a better audit..
Also stdlib.h was missing from failures.c for some reason..
--HG--
branch : HEAD |
b4493d31ddec67ceea4459acdd5c2da3086a2773 |
|
13-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
make sure failure handlers don't modify errno.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |