"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/doveadm/doveadm-dump-mailboxlog.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

doveadm-dump-mailboxlog.c  (dovecot-2.3.16):doveadm-dump-mailboxlog.c  (dovecot-2.3.17)
skipping to change at line 60 skipping to change at line 60
break; break;
} }
printf(" %s", binary_to_hex(rec.mailbox_guid, printf(" %s", binary_to_hex(rec.mailbox_guid,
sizeof(rec.mailbox_guid))); sizeof(rec.mailbox_guid)));
timestamp = be32_to_cpu_unaligned(rec.timestamp); timestamp = be32_to_cpu_unaligned(rec.timestamp);
printf(" (%s)\n", unixdate2str(timestamp)); printf(" (%s)\n", unixdate2str(timestamp));
return 1; return 1;
} }
static void cmd_dump_mailboxlog(int argc ATTR_UNUSED, char *argv[]) static void
cmd_dump_mailboxlog(const char *path, const char *const *args ATTR_UNUSED)
{ {
int fd, ret; int fd, ret;
fd = open(argv[1], O_RDONLY); fd = open(path, O_RDONLY);
if (fd < 0) if (fd < 0)
i_fatal("open(%s) failed: %m", argv[1]); i_fatal("open(%s) failed: %m", path);
do { do {
T_BEGIN { T_BEGIN {
ret = dump_record(fd); ret = dump_record(fd);
} T_END; } T_END;
} while (ret > 0); } while (ret > 0);
i_close_fd(&fd); i_close_fd(&fd);
} }
static bool test_dump_mailboxlog(const char *path) static bool test_dump_mailboxlog(const char *path)
 End of changes. 3 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)