"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/plugins/fts/doveadm-dump-fts-expunge-log.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-fts-expunge-log.c  (dovecot-2.3.16):doveadm-dump-fts-expunge-log.c  (dovecot-2.3.17)
skipping to change at line 76 skipping to change at line 76
printf(","); printf(",");
if (uids[i] == uids[i+1]) if (uids[i] == uids[i+1])
printf("%u", uids[i]); printf("%u", uids[i]);
else else
printf("%u-%u", uids[i], uids[i+1]); printf("%u-%u", uids[i], uids[i+1]);
} }
printf("\n"); printf("\n");
return 1; return 1;
} }
static void cmd_dump_fts_expunge_log(int argc ATTR_UNUSED, char *argv[]) static void
cmd_dump_fts_expunge_log(const char *path, const char *const *args ATTR_UNUSED)
{ {
buffer_t *buf; buffer_t *buf;
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);
buf = buffer_create_dynamic(default_pool, 1024); buf = buffer_create_dynamic(default_pool, 1024);
do { do {
T_BEGIN { T_BEGIN {
ret = dump_record(fd, buf); ret = dump_record(fd, buf);
} T_END; } T_END;
} while (ret > 0); } while (ret > 0);
buffer_free(&buf); buffer_free(&buf);
i_close_fd(&fd); i_close_fd(&fd);
} }
 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)