From feb71a69508f196f5e7131916ded913e8b4f52cb Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Wed, 7 Jun 2000 03:16:01 +0000 Subject: [PATCH] mmap() fails with ENODEV on NTFS under Linux. --- files/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/file.c b/files/file.c index 14c5e6da38b..7f804585adb 100644 --- a/files/file.c +++ b/files/file.c @@ -1610,10 +1610,10 @@ LPVOID FILE_dommap( int unix_handle, LPVOID start, /* mmap() failed; if this is because the file offset is not */ /* page-aligned (EINVAL), or because the underlying filesystem */ - /* does not support mmap() (ENOEXEC), we do it by hand. */ + /* does not support mmap() (ENOEXEC,ENODEV), we do it by hand. */ if (unix_handle == -1) return ret; - if ((errno != ENOEXEC) && (errno != EINVAL)) return ret; + if ((errno != ENOEXEC) && (errno != EINVAL) && (errno != ENODEV)) return ret; if (prot & PROT_WRITE) { /* We cannot fake shared write mappings */ -- 2.11.4.GIT