updated for version 7.1-064
diff --git a/src/os_unix.c b/src/os_unix.c
index 2d512b7..d0a1c52 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -2499,7 +2499,13 @@
     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
 }
 
 /*