Mercurial > dovecot > core-2.2
changeset 2481:2ad55f027439 HEAD
Rawlog filename was always with date 01.01.1970.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 23 Aug 2004 17:15:09 +0300 |
parents | ac93896adcc3 |
children | 626e943aacf1 |
files | src/util/rawlog.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util/rawlog.c Mon Aug 23 16:47:32 2004 +0300 +++ b/src/util/rawlog.c Mon Aug 23 17:15:09 2004 +0300 @@ -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");