From b35038fa4e3e69f1397758497a46dc0d37edee79 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 5 Jul 2007 13:46:47 +0000 Subject: [PATCH] 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. --- source/libsmb/clierror.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c index d98f4282179..90e82c51014 100644 --- a/source/libsmb/clierror.c +++ b/source/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} }; -- 2.11.4.GIT