]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
rawlog: Removed double '.' chars from log filenames
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Mar 2015 19:14:55 +0000 (21:14 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Mar 2015 19:14:55 +0000 (21:14 +0200)
src/util/rawlog.c

index d2d0cff0383468993c65e6f3f0ddac65aa65b385..2276b775e35a9f0bef425ba022b0a2ec3e1c6aa1 100644 (file)
@@ -226,7 +226,7 @@ static void proxy_open_logs(struct rawlog_proxy *proxy, const char *path,
        if (ip_addr != NULL &&
            (proxy->flags & RAWLOG_FLAG_LOG_IP_IN_FILENAME) != 0)
                str_printfa(path_prefix, "%s-", ip_addr);
-       str_printfa(path_prefix, "%s-%s.", timestamp, dec2str(getpid()));
+       str_printfa(path_prefix, "%s-%s", timestamp, dec2str(getpid()));
 
        if ((proxy->flags & RAWLOG_FLAG_LOG_INPUT) != 0) {
                fname = t_strdup_printf("%s.in", str_c(path_prefix));