From e1eb48bc6baf370c58f41f8ddec4b03809c3b193 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Thu, 4 Jun 2009 18:56:58 +0200 Subject: 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(+) (limited to 'source3/lib') 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 -- cgit