From 9b8f7a2a01845a37176ce7b4b4024503d6e9ca62 Mon Sep 17 00:00:00 2001 From: Surbhi Palande Date: Thu, 19 Aug 2010 11:56:30 +0300 Subject: -ENOTSUP translates to NT_STATUS_NOT_SUPPORTED 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 --- source3/lib/errmap_unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c index d5b94e9985..91a620ecce 100644 --- a/source3/lib/errmap_unix.c +++ b/source3/lib/errmap_unix.c @@ -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 } }; -- cgit