server: Map ENOTSUP to STATUS_NOT_SUPPORTED.

Francois Gouget fgouget at free.fr
Mon Jun 16 11:24:44 CDT 2014


---

This avoids a lot of log pollution on FreeBSD.

 server/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/file.c b/server/file.c
index cceb8ad..58e6d6d 100644
--- a/server/file.c
+++ b/server/file.c
@@ -619,6 +619,7 @@ void file_set_error(void)
     case EFBIG:     set_error( STATUS_SECTION_TOO_BIG ); break;
     case ENODEV:    set_error( STATUS_NO_SUCH_DEVICE ); break;
     case ENXIO:     set_error( STATUS_NO_SUCH_DEVICE ); break;
+    case ENOTSUP:   set_error( STATUS_NOT_SUPPORTED ); break;
 #ifdef EOVERFLOW
     case EOVERFLOW: set_error( STATUS_INVALID_PARAMETER ); break;
 #endif
-- 
2.0.0




More information about the wine-patches mailing list