Updated copyright notices to include the year 2018.
Updated copyright notices to include the year 2017.
global: Change string position/length from unsigned int to size_t Mainly to avoid truncating >4GB strings, which might potentially cause some security holes. Normally there are other limits, which prevent such excessive strings from being created in the first place. I'm sure this didn't find everything. Maybe everything could be found with compiler warnings. -Wconversion kind of does it, but it gives way too many unnecessary warnings. These were mainly found with: grep " = strlen" egrep "unsigned int.*(size|len)"
lib-storage: Make sure mailbox_uidvalidity_next() doesn't return 0. 0 isn't a valid IMAP UIDVALIDITY, and Dovecot treats 0 as "not assigned".
global: freshen copyright git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/'
Remove now-unnecessary direct stdlib.h #includes.
Replaced unlink() calls with i_unlink*() wherever possible.
Removed all invocations of strtoll() and friends.
global: freshen copyright Robomatically: git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/' Happy 2015 everyone! Signed-off-by: Phil Carmody <phil@dovecot.fi>
Updated copyright notices to include year 2014.
And removed accidentally committed nbsp.
Fixed file descriptor leaks in rather unimportant places. Found by Coverity scan.
lib-storage: Auto-create dovecot-uidvalidity's missing parent directory
Oops :) Update copyrights to 2013 without breaking all .c files.
Updated copyright notices to include year 2013.
lib-storage: mailbox_list_get_root_permissions() now returns struct mailbox_permissions.
Changed i_close_fd() API to set the fd to -1 after closing.
Replaced (void)close(fd) and close_keep_errno() with i_close_fd(). i_close_fd() preserves the errno and logs an error if the close() fails.
Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.
Updated copyright notices to include year 2012.
Updated copyright notices to include year 2011.
lib-storage: Merged returning dir mode into mailbox_list_get_[root_]permissions().
lib-storage: Added mailbox_list_get_root_[dir_]permissions() They should be used instead of mailbox_list_get_[dir_]permissions() with name=NULL parameter.
lib-storage: Don't log rename() error if dovecot-uidvalidity didn't contain valid value. --HG-- branch : HEAD
Updated copyright notices to include year 2010. --HG-- branch : HEAD
dovecot-uidvalidity*: Create files with correct permission. --HG-- branch : HEAD
Updated copyright notices to include year 2009. --HG-- branch : HEAD
Compiler warning fixes --HG-- branch : HEAD
Maildir/dbox: Try harder to assign unique UIDVALIDITY values to mailboxes. --HG-- branch : HEAD