mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Avoid modifying existing pool entries when symlink creation finds a conflict
This commit is contained in:
parent
28aae9d289
commit
99a79b7049
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue