aboutsummaryrefslogtreecommitdiff
path: root/src/os/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/fs.c')
-rw-r--r--src/os/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/fs.c b/src/os/fs.c
index db366769b2..fdf9d0795e 100644
--- a/src/os/fs.c
+++ b/src/os/fs.c
@@ -281,7 +281,7 @@ int os_file_exists(const char_u *name)
// return TRUE if a file appears to be read-only from the file permissions.
int os_file_is_readonly(const char *name)
{
- if (mch_access(name, W_OK) == 0) {
+ if (access(name, W_OK) == 0) {
return FALSE;
} else {
return TRUE;
@@ -292,7 +292,7 @@ int os_file_is_readonly(const char *name)
// rights to write into.
int os_file_is_writable(const char *name)
{
- if (mch_access(name, W_OK) == 0) {
+ if (access(name, W_OK) == 0) {
if (os_isdir((char_u *)name)) {
return 2;
}