From: Björn Jacke Date: Thu, 4 Jun 2009 16:56:58 +0000 (+0200) Subject: s3: map NetBSD's errno on posix open calls for symlinks X-Git-Tag: tdb-1.1.5~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1eb48bc6baf370c58f41f8ddec4b03809c3b193;p=thirdparty%2Fsamba.git 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. --- 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