diff options
| author | James McCoy <jamessan@jamessan.com> | 2022-08-18 12:52:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-18 12:52:06 -0400 |
| commit | 6ec04e590f72cd2b3803691f39d18cff7659ecf9 (patch) | |
| tree | 5e8800582a6734945d0d2de51628ce5ed1e358a7 /src/nvim/os | |
| parent | 44205fe516990fc753fd7dc31f5929508c452cfd (diff) | |
| parent | a7f4d0a78275cd7ef9dea8b1adc2f531cef5e16d (diff) | |
Merge pull request #19833 from neovim/backport-19826-to-release-0.7release-0.7
[Backport release-0.7] revert: "jobstart(): Fix hang on non-executable cwd #9204"
Diffstat (limited to 'src/nvim/os')
| -rw-r--r-- | src/nvim/os/fs.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index daf974ee74..38d3419926 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -146,25 +146,6 @@ bool os_isdir(const char_u *name) return true; } -/// Check if the given path is a directory and is executable. -/// Gives the same results as `os_isdir()` on Windows. -/// -/// @return `true` if `name` is a directory and executable. -bool os_isdir_executable(const char *name) - FUNC_ATTR_NONNULL_ALL -{ - int32_t mode = os_getperm(name); - if (mode < 0) { - return false; - } - -#ifdef WIN32 - return (S_ISDIR(mode)); -#else - return (S_ISDIR(mode) && (S_IXUSR & mode)); -#endif -} - /// Check what `name` is: /// @return NODE_NORMAL: file or directory (or doesn't exist) /// NODE_WRITABLE: writable device, socket, fifo, etc. |
