summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-06-04 18:56:58 +0200
committerBjörn Jacke <bj@sernet.de>2009-06-04 22:09:10 +0200
commite1eb48bc6baf370c58f41f8ddec4b03809c3b193 (patch)
tree79b96cfa0f5024cbefb162a82e26352d9d684317 /source3/lib
parent73e3c85abac706be0a1836f3a4375ab379eceb86 (diff)
downloadsamba-e1eb48bc6baf370c58f41f8ddec4b03809c3b193.tar.gz
samba-e1eb48bc6baf370c58f41f8ddec4b03809c3b193.tar.bz2
samba-e1eb48bc6baf370c58f41f8ddec4b03809c3b193.zip
s3: map NetBSD's errno on posix open calls for symlinks
This is well undocumented but NetBSD returns EFTYPE on O_NOFOLLOW open calls on symlinks.
Diffstat (limited to 'source3/lib')
-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 bb09726ee0..0c39a572ad 100644
--- a/source3/lib/errmap_unix.c
+++ b/source3/lib/errmap_unix.c
@@ -43,6 +43,9 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
#ifdef ELOOP
{ ELOOP, ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND },
#endif
+#ifdef EFTYPE
+ { EFTYPE, ERRDOS, ERRbadpath, NT_STATUS_OBJECT_PATH_NOT_FOUND },
+#endif
#ifdef EDQUOT
{ EDQUOT, ERRHRD, ERRdiskfull, NT_STATUS_DISK_FULL }, /* Windows apps need this, not NT_STATUS_QUOTA_EXCEEDED */
#endif