summaryrefslogtreecommitdiff
path: root/source3/lib/errmap_unix.c
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-06-11 18:20:20 +0200
committerChristian Ambach <ambi@samba.org>2013-06-25 12:54:00 +0200
commit245b5ffddef945e071ea1b5d26de1da80a0b7ae8 (patch)
tree162cc3c4a2a38aec3749f894182a2f04d728792c /source3/lib/errmap_unix.c
parent526f0dff9635ed1572152a61672013d5f96ddd74 (diff)
downloadsamba-245b5ffddef945e071ea1b5d26de1da80a0b7ae8.tar.gz
s3:lib add mapping for ETXTBSY
add ETXTBSY to the errno->STATUS conversion table. It will be mapped to STATUS_SHARING_VIOLATION Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/lib/errmap_unix.c')
-rw-r--r--source3/lib/errmap_unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c
index 28f527ec95e..c5e190ce8c2 100644
--- a/source3/lib/errmap_unix.c
+++ b/source3/lib/errmap_unix.c
@@ -111,6 +111,9 @@ static const struct {
#ifdef ENOTSUP
{ ENOTSUP, NT_STATUS_NOT_SUPPORTED},
#endif
+#ifdef ETXTBSY
+ { ETXTBSY, NT_STATUS_SHARING_VIOLATION },
+#endif
};
/*********************************************************************