From: Timo Sirainen Date: Thu, 22 Jun 2017 07:35:16 +0000 (+0300) Subject: lib: file_create_locked() - update lock path after link() X-Git-Tag: 2.3.0.rc1~1366 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2605b390b4f622faf86d7c27e450b62f3a16b2dc;p=thirdparty%2Fdovecot%2Fcore.git lib: file_create_locked() - update lock path after link() --- diff --git a/src/lib/file-create-locked.c b/src/lib/file-create-locked.c index b375a2b855..57ee123ba8 100644 --- a/src/lib/file-create-locked.c +++ b/src/lib/file-create-locked.c @@ -80,6 +80,7 @@ try_create_new(const char *path, const struct file_create_settings *set, } file_lock_free(lock_r); } else { + file_lock_set_path(*lock_r, path); i_unlink_if_exists(str_c(temp_path)); *fd_r = fd; return 1;