]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: file_create_locked() - update lock path after link()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 22 Jun 2017 07:35:16 +0000 (10:35 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 3 Jul 2017 12:13:24 +0000 (15:13 +0300)
src/lib/file-create-locked.c

index b375a2b8557132be1aa3ae24a9d62e8f56d3c690..57ee123ba8b2147bda9440a31dcd7ff0f8f4debb 100644 (file)
@@ -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;