summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2015-12-17 19:16:43 +0100
committerKarolin Seeger <kseeger@samba.org>2016-01-06 10:07:16 +0100
commit8a25a0a9c9d26079cb91be7f6360a4d6ff7ac5d4 (patch)
tree84f4086c249ff9345db86d93108ec72cacc7153e
parentb32587e06cb12909b37dc98a90707849be9333a5 (diff)
downloadsamba-8a25a0a9c9d26079cb91be7f6360a4d6ff7ac5d4.tar.gz
s3:lib/errmap_unix: map EOVERFLOW to NT_STATUS_ALLOTTED_SPACE_EXCEEDED
vfs_fruit returns the correct error NT_STATUS_ALLOTTED_SPACE_EXCEEDED when an attempt is made to extend the AFP_AfpInfo stream beyond 60 bytes. This will be used in a subsequent commit in vfs_fruit. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1650e793edb42b07501d7467aa64c80eacf33eb6)
-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 56d3f00da8d..f572b99d666 100644
--- a/source3/lib/errmap_unix.c
+++ b/source3/lib/errmap_unix.c
@@ -115,6 +115,9 @@ static const struct {
#ifdef ETXTBSY
{ ETXTBSY, NT_STATUS_SHARING_VIOLATION },
#endif
+#ifdef EOVERFLOW
+ { EOVERFLOW, NT_STATUS_ALLOTTED_SPACE_EXCEEDED },
+#endif
};
/*********************************************************************