diff src/os_unix.c @ 1350:3d698caa5dfc v7.1.064

updated for version 7.1-064
author vimboss
date Sat, 11 Aug 2007 20:24:10 +0000
parents a3c21128b246
children 61b50044616b
line wrap: on
line diff
--- 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
 }
 
 /*