unix: check uv__make_subdirs_p UV_ENAMETOOLONG error when called

This commit is contained in:
Levent Kaya 2026-03-18 22:06:54 +03:00
parent 4b14de5a45
commit 2b775c37ba

View File

@ -576,9 +576,7 @@ static int uv__setup_ahafs(const char* filename, int *fd) {
/* Make the necessary subdirectories for the monitor file */
rc = uv__make_subdirs_p(filename);
if (rc == UV_ENAMETOOLONG)
return rc;
if (rc == -1 && errno != EEXIST)
if (rc != 0)
return rc;
strcat(mon_file, filename);