replace/setxattr: set reasonable and unified errno value in case the EA value was...
authorBjörn Jacke <bj@sernet.de>
Sat, 2 Mar 2019 04:01:28 +0000 (05:01 +0100)
committerBjoern Jacke <bjacke@samba.org>
Thu, 29 Aug 2019 15:53:30 +0000 (15:53 +0000)
commitb8f4be98f5d22eb034a953ebefab88752bf4a099
treea69eac8b40203f7339bc5eaca1037b740e0ea859
parent0be320393b85003f65d74e4e6a1b867a8d21eb1c
replace/setxattr: set reasonable and unified errno value in case the EA value was too big

FreeBSD and AIX already set errno to ENAMETOOLONG, this is what we should map
other platforms also to to finally map to the correct NT error code also.

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/replace/xattr.c