r23723: Alexander Larsson pointed me at a missing mapping in clierror.c
authorSimo Sorce <idra@samba.org>
Thu, 5 Jul 2007 13:46:47 +0000 (13:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:48 +0000 (12:23 -0500)
When renaming a file across 2 filesystem a samba server returns
NT_STATUS_NOT_SAME_DEVICE but thius is not translated to EXDEV,
and the generic EINVAL is returned instead.
This should fix it, Jeremy or Derrel please check if this is ok.
(This used to be commit b35038fa4e3e69f1397758497a46dc0d37edee79)

source3/libsmb/clierror.c

index d98f42821790c151df0c0e91c67c76ef423003d1..90e82c5101481dbab5975cf5789ba3589c088a3e 100644 (file)
@@ -336,7 +336,9 @@ static const struct {
 #ifdef ECOMM
        {NT_STATUS_NET_WRITE_FAULT, ECOMM},
 #endif
-
+#ifdef EXDEV
+       {NT_STATUS_NOT_SAME_DEVICE, EXDEV},
+#endif
        {NT_STATUS(0), 0}
 };