diff options
-rw-r--r-- | src/nvim/os/fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 5ccefd8ac5..c1cb418d5c 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -41,9 +41,9 @@ int os_dirname(char_u *buf, size_t len) { assert(buf && len); - int errno; - if ((errno = uv_cwd((char *)buf, &len)) != kLibuvSuccess) { - STRLCPY(buf, uv_strerror(errno), len); + int error_number; + if ((error_number = uv_cwd((char *)buf, &len)) != kLibuvSuccess) { + STRLCPY(buf, uv_strerror(error_number), len); return FAIL; } return OK; @@ -96,7 +96,7 @@ static bool is_executable(const char_u *name) return false; } - if (S_ISREG(mode) && (S_IEXEC & mode)) { + if (S_ISREG(mode) && (S_IXUSR & mode)) { return true; } |