aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-18 22:09:50 +0800
committerGitHub <noreply@github.com>2022-08-18 22:09:50 +0800
commit36f0b508c548ba7a6fe916be6c673c4a4738f246 (patch)
tree2c5721e70a781cca0ff155f60e87847ac383b39e /src/nvim/os
parent700a6fb9d4689ebfeea1139370351eafef74f302 (diff)
downloadrneovim-36f0b508c548ba7a6fe916be6c673c4a4738f246.tar.gz
rneovim-36f0b508c548ba7a6fe916be6c673c4a4738f246.tar.bz2
rneovim-36f0b508c548ba7a6fe916be6c673c4a4738f246.zip
revert: "jobstart(): Fix hang on non-executable cwd #9204" (#19826)
This reverts commit c4c74c3883aa3122c0c877ca8dd7b26beb5cc4aa. LibUV already gives an error for this, so this isn't needed.
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/fs.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index ca6879aea1..0d62a5f5f9 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -144,25 +144,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.