s3:lib: map ENOSYS to NT_STATUS_NOT_SUPPORTED instead of NT_STATUS_ACCESS_DENIED
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Jul 2009 07:49:25 +0000 (09:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 15 Jul 2009 09:55:39 +0000 (11:55 +0200)
Jeremy: please check and decide if we want to backport this.

metze

source3/lib/errmap_unix.c

index 0c39a572ad1db1d280cc650430610426c201da7f..00c5475394036f562b501538831538bed1e08880 100644 (file)
@@ -40,6 +40,7 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
        { EISDIR, ERRDOS, ERRnoaccess, NT_STATUS_FILE_IS_A_DIRECTORY},
        { EMLINK, ERRDOS, ERRgeneral, NT_STATUS_TOO_MANY_LINKS },
        { EINTR,  ERRHRD, ERRgeneral, NT_STATUS_RETRY },
+       { ENOSYS, ERRDOS, ERRunsup, NT_STATUS_NOT_SUPPORTED },
 #ifdef ELOOP
        { ELOOP, ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND },
 #endif