From ccbdffb94e22c17b03b0a464071df027ebdc6264 Mon Sep 17 00:00:00 2001 From: Steve French Date: Sun, 24 Apr 2005 02:59:40 +0000 Subject: [PATCH] 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. --- source/libsmb/errormap.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3