]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
fs-posix: Fix fs_copy() potentially doing unnecessary unlink()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Oct 2025 10:00:30 +0000 (13:00 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Oct 2025 15:27:29 +0000 (15:27 +0000)
commit7e92385d8f72f76524643ab64c0c606af10322e8
treebe1727a2c1b449f1df98c785f72d99fdfe032395
parent891adddff117791e77d64744e9aab61fe5dc9676
fs-posix: Fix fs_copy() potentially doing unnecessary unlink()

We need to check if link() failed before checking errno.
src/lib-fs/fs-posix.c