[dovecot-cvs] dovecot/src/lib failures.c,1.32,1.33
tss at dovecot.org
tss at dovecot.org
Fri Jan 19 18:25:55 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv21110
Modified Files:
failures.c
Log Message:
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.
Index: failures.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/failures.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- failures.c 22 Dec 2006 21:46:18 -0000 1.32
+++ failures.c 19 Jan 2007 18:25:53 -0000 1.33
@@ -347,8 +347,9 @@
else {
*file = fopen(path, "a");
if (*file == NULL) {
- i_fatal_status(FATAL_LOGOPEN,
- "Can't open log file %s: %m", path);
+ fprintf(stderr, "Can't open log file %s: %s",
+ path, strerror(errno));
+ exit(FATAL_LOGOPEN);
}
fd_close_on_exec(fileno(*file), TRUE);
}
More information about the dovecot-cvs
mailing list