Mercurial > dovecot > core-2.2
diff src/doveadm/dsync/dsync-brain.c @ 19136:fefaa6d09a81
Replaced unlink() calls with i_unlink*() wherever possible.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 08 Sep 2015 19:07:02 +0300 |
parents | 3fc9658c9712 |
children | f9a143c630a5 |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain.c Tue Sep 08 18:49:00 2015 +0300 +++ b/src/doveadm/dsync/dsync-brain.c Tue Sep 08 19:07:02 2015 +0300 @@ -332,8 +332,7 @@ if (brain->lock_fd != -1) { /* unlink the lock file before it gets unlocked */ - if (unlink(brain->lock_path) < 0) - i_error("unlink(%s) failed: %m", brain->lock_path); + i_unlink(brain->lock_path); file_lock_free(&brain->lock); i_close_fd(&brain->lock_fd); }