[dovecot-cvs] dovecot/src/util rawlog.c,1.2,1.3
cras at dovecot.org
cras at dovecot.org
Mon Aug 23 17:15:11 EEST 2004
- Previous message: [dovecot-cvs] dovecot/src/lib ioloop-internal.h, 1.10,
1.11 ioloop-poll.c, 1.21, 1.22 ioloop-select.c, 1.16,
1.17 ioloop.c, 1.22, 1.23
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail.c, 1.49,
1.50 index-storage.h, 1.74, 1.75
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/util
In directory talvi:/tmp/cvs-serv14652
Modified Files:
rawlog.c
Log Message:
Rawlog filename was always with date 01.01.1970.
Index: rawlog.c
===================================================================
RCS file: /home/cvs/dovecot/src/util/rawlog.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- rawlog.c 24 Aug 2003 09:35:19 -0000 1.2
+++ rawlog.c 23 Aug 2004 14:15:09 -0000 1.3
@@ -93,6 +93,7 @@
struct stat st;
int sfd[2];
pid_t pid, parent_pid;
+ time_t now;
home = getenv("HOME");
if (home == NULL)
@@ -130,7 +131,8 @@
restrict_access_by_env(TRUE);
/* open the files after dropping privileges */
- tm = localtime(&ioloop_time);
+ now = time(NULL);
+ tm = localtime(&now);
if (strftime(timestamp, sizeof(timestamp), "%Y%m%d-%H%M%S", tm) <= 0)
i_fatal("strftime() failed");
- Previous message: [dovecot-cvs] dovecot/src/lib ioloop-internal.h, 1.10,
1.11 ioloop-poll.c, 1.21, 1.22 ioloop-select.c, 1.16,
1.17 ioloop.c, 1.22, 1.23
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail.c, 1.49,
1.50 index-storage.h, 1.74, 1.75
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list