From 4ce65137d927a1f464dcd8f3e5b7b13c71adda27 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 5 Jul 2007 13:46:47 +0000 Subject: r23723: 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. (This used to be commit b35038fa4e3e69f1397758497a46dc0d37edee79) --- source3/libsmb/clierror.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c index d98f428217..90e82c5101 100644 --- a/source3/libsmb/clierror.c +++ b/source3/libsmb/clierror.c @@ -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} }; -- cgit