diff --git a/src/unix/aix.c b/src/unix/aix.c index faedc288a..f7ff570d7 100644 --- a/src/unix/aix.c +++ b/src/unix/aix.c @@ -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);