svn commit: samba r23723 - in branches: SAMBA_3_0/source/libsmb SAMBA_3_0_26/source/libsmb

idra at samba.org idra at samba.org
Thu Jul 5 13:46:48 GMT 2007


Author: idra
Date: 2007-07-05 13:46:47 +0000 (Thu, 05 Jul 2007)
New Revision: 23723

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23723

Log:

Alexander Larsson pointed me at a missing mapping in clierror.c
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.


Modified:
   branches/SAMBA_3_0/source/libsmb/clierror.c
   branches/SAMBA_3_0_26/source/libsmb/clierror.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clierror.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clierror.c	2007-07-05 10:32:51 UTC (rev 23722)
+++ branches/SAMBA_3_0/source/libsmb/clierror.c	2007-07-05 13:46:47 UTC (rev 23723)
@@ -336,7 +336,9 @@
 #ifdef ECOMM
 	{NT_STATUS_NET_WRITE_FAULT, ECOMM},
 #endif
-
+#ifdef EXDEV
+	{NT_STATUS_NOT_SAME_DEVICE, EXDEV},
+#endif
 	{NT_STATUS(0), 0}
 };
 

Modified: branches/SAMBA_3_0_26/source/libsmb/clierror.c
===================================================================
--- branches/SAMBA_3_0_26/source/libsmb/clierror.c	2007-07-05 10:32:51 UTC (rev 23722)
+++ branches/SAMBA_3_0_26/source/libsmb/clierror.c	2007-07-05 13:46:47 UTC (rev 23723)
@@ -331,7 +331,9 @@
 #ifdef ECOMM
 	{NT_STATUS_NET_WRITE_FAULT, ECOMM},
 #endif
-
+#ifdef EXDEV
+	{NT_STATUS_NOT_SAME_DEVICE, EXDEV},
+#endif
 	{NT_STATUS(0), 0}
 };
 



More information about the samba-cvs mailing list