Mercurial > dovecot > core-2.2
changeset 22977:2f1353b11b6b
fs-posix: Support FS_METADATA_WRITE_FNAME for fs_copy()
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 22 May 2018 16:06:15 +0300 |
parents | 8e13b19ca89d |
children | 91b975cdeb87 |
files | src/lib-fs/fs-posix.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-fs/fs-posix.c Tue May 22 10:59:11 2018 +0300 +++ b/src/lib-fs/fs-posix.c Tue May 22 16:06:15 2018 +0300 @@ -764,6 +764,7 @@ unsigned int try_count = 0; int ret; + fs_posix_write_rename_if_needed(dest); ret = link(src->full_path, dest->full_path); if (errno == EEXIST && dest->open_mode == FS_OPEN_MODE_REPLACE) { /* destination file already exists - replace it */