-ENOTSUP translates to NT_STATUS_NOT_SUPPORTED
authorSurbhi Palande <surbhi.palande@canonical.com>
Thu, 19 Aug 2010 08:56:30 +0000 (11:56 +0300)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Aug 2010 10:11:26 +0000 (12:11 +0200)
https://launchpad.net/bugs/276472

This patch adds the translation of Unix Error code -ENOTSUP to NT Error Code
NT_STATUS_NOT_SUPPORTED. The absense of this translation wrongly sends back to
the client a STATUS_DENIED message in samba3.

Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
source3/lib/errmap_unix.c

index d5b94e998579f6606c784090c4bd1a55d7a86359..91a620eccec2ccb2de1b642e21ea68bf1f33d854 100644 (file)
@@ -105,7 +105,9 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
 #ifdef ECANCELED
        { ECANCELED, ERRDOS, ERRbadfid, NT_STATUS_CANCELLED},
 #endif
-
+#ifdef ENOTSUP
+        { ENOTSUP, ERRSRV, ERRnosupport, NT_STATUS_NOT_SUPPORTED},
+#endif
        { 0, 0, 0, NT_STATUS_OK }
 };