r6447: Add missing error mapping for EMLINK to NT_STATUS_TOO_MANY_LINKS (we have...
authorSteve French <sfrench@samba.org>
Sun, 24 Apr 2005 02:59:40 +0000 (02:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:41 +0000 (10:56 -0500)
in clierror already).  This fixes the return code when we try to hardlink from a client.

source/libsmb/errormap.c

index 8ac1aed923ba598bfc3d68ef6c0b760f53956879..c79561bda87a54cebdfd1dc9a1b3811b6c60d771 100644 (file)
@@ -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