From e1eb48bc6baf370c58f41f8ddec4b03809c3b193 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 4 Jun 2009 18:56:58 +0200 Subject: [PATCH] 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. --- source3/lib/errmap_unix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c index bb09726ee08..0c39a572ad1 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 -- 2.47.2