From: Steve French Date: Sun, 24 Apr 2005 02:59:40 +0000 (+0000) Subject: r6447: Add missing error mapping for EMLINK to NT_STATUS_TOO_MANY_LINKS (we have... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~4916 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccbdffb94e22c17b03b0a464071df027ebdc6264;p=thirdparty%2Fsamba.git r6447: Add missing error mapping for EMLINK to NT_STATUS_TOO_MANY_LINKS (we have it the other direction in clierror already). This fixes the return code when we try to hardlink from a client. --- diff --git a/source/libsmb/errormap.c b/source/libsmb/errormap.c index 8ac1aed923b..c79561bda87 100644 --- a/source/libsmb/errormap.c +++ b/source/libsmb/errormap.c @@ -1505,6 +1505,7 @@ const struct unix_error_map unix_dos_nt_errmap[] = { { ENOSPC, ERRHRD, ERRdiskfull, NT_STATUS_DISK_FULL }, { ENOMEM, ERRDOS, ERRnomem, NT_STATUS_NO_MEMORY }, { EISDIR, ERRDOS, ERRnoaccess, NT_STATUS_FILE_IS_A_DIRECTORY}, + { EMLINK, ERRDOS, ERRgeneral, NT_STATUS_TOO_MANY_LINKS }, #ifdef EDQUOT { EDQUOT, ERRHRD, ERRdiskfull, NT_STATUS_DISK_FULL }, #endif