From 99a79b7049e61c014317bb46993cb8d1114e4cf7 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 28 Sep 2026 16:35:47 +0200 Subject: [PATCH] Avoid modifying existing pool entries when symlink creation finds a conflict --- cmdline/pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmdline/pool.c b/cmdline/pool.c index 5429892b..5a46fd49 100644 --- a/cmdline/pool.c +++ b/cmdline/pool.c @@ -359,7 +359,8 @@ static void make_link(tommy_hashdyn* poolset, const char* pool_dir, const char* ret = symlink(linkto_exported, path); if (ret != 0) { if (errno == EEXIST) { - log_error(errno, "WARNING! Duplicate pooling for '%s'\n", path); + log_error(errno, "WARNING! Pool path '%s' already exists\n", path); + return; #ifdef _WIN32 } else if (errno == EPERM) { /* LCOV_EXCL_START */