Avoid modifying existing pool entries when symlink creation finds a conflict

This commit is contained in:
Andrea Mazzoleni 2026-09-28 16:35:47 +02:00
parent 28aae9d289
commit 99a79b7049

View file

@ -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 */