summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-07-05 13:46:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:48 -0500
commit4ce65137d927a1f464dcd8f3e5b7b13c71adda27 (patch)
treedf3ba1c41a9af57779d98b70bbf2a8c3aa9a02d2
parentc509ce3675d70994efb08341cd2d7d0a721b9a3e (diff)
downloadsamba-4ce65137d927a1f464dcd8f3e5b7b13c71adda27.tar.gz
samba-4ce65137d927a1f464dcd8f3e5b7b13c71adda27.tar.bz2
samba-4ce65137d927a1f464dcd8f3e5b7b13c71adda27.zip
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)
-rw-r--r--source3/libsmb/clierror.c4
1 files changed, 3 insertions, 1 deletions
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}
};