From 708f62c38056b017d090c858036a8f8bf8884da6 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 11 Aug 2007 20:24:10 +0000 Subject: updated for version 7.1-064 --- src/os_unix.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/os_unix.c') diff --git a/src/os_unix.c b/src/os_unix.c index 2d512b730..d0a1c521b 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2499,7 +2499,13 @@ mch_getperm(name) if (stat((char *)name, &statb)) #endif return -1; +#ifdef __INTERIX + /* The top bit makes the value negative, which means the file doesn't + * exist. Remove the bit, we don't use it. */ + return statb.st_mode & ~S_ADDACE; +#else return statb.st_mode; +#endif } /* -- cgit v1.2.1