From: Timo Sirainen Date: Tue, 22 May 2018 13:06:15 +0000 (+0300) Subject: fs-posix: Support FS_METADATA_WRITE_FNAME for fs_copy() X-Git-Tag: 2.2.36.1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92288914015b6fe780a7823a6af54797d097aba6;p=thirdparty%2Fdovecot%2Fcore.git fs-posix: Support FS_METADATA_WRITE_FNAME for fs_copy() --- diff --git a/src/lib-fs/fs-posix.c b/src/lib-fs/fs-posix.c index 1a257fbeef..82bf5306a9 100644 --- a/src/lib-fs/fs-posix.c +++ b/src/lib-fs/fs-posix.c @@ -764,6 +764,7 @@ static int fs_posix_copy(struct fs_file *_src, struct fs_file *_dest) 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 */