diff options
author | Surbhi Palande <surbhi.palande@canonical.com> | 2010-08-19 11:56:30 +0300 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-19 12:11:26 +0200 |
commit | 9b8f7a2a01845a37176ce7b4b4024503d6e9ca62 (patch) | |
tree | 00c9862809b43a99dd15a9c38633cdebdd15fd29 /source3/lib | |
parent | ba706d696b8fb14b8d449cd198d982eef18e4320 (diff) | |
download | samba-9b8f7a2a01845a37176ce7b4b4024503d6e9ca62.tar.gz samba-9b8f7a2a01845a37176ce7b4b4024503d6e9ca62.tar.bz2 samba-9b8f7a2a01845a37176ce7b4b4024503d6e9ca62.zip |
-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 <surbhi.palande@canonical.com>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/errmap_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 } }; |