]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r23845: Second part of the fix for #4777. Looks like on AIX opendir
authorJeremy Allison <jra@samba.org>
Wed, 11 Jul 2007 23:40:14 +0000 (23:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:34 +0000 (12:28 -0500)
returns an errno of ELOOP for a symlink of msdfs:server\path\to\link.
Cope with this by mapping to a known error NT_STATUS_OBJECT_PATH_NOT_FOUND
that we know dfs_path_lookup should ignore.
Jeremy.

source/lib/errmap_unix.c

index 79cdd886cf493ee962f8579c00d05340f7221892..885a1c55b29170d2bdb1afc885b73da7c00343c9 100644 (file)
@@ -40,6 +40,9 @@ const struct unix_error_map unix_dos_nt_errmap[] = {
        { EISDIR, ERRDOS, ERRnoaccess, NT_STATUS_FILE_IS_A_DIRECTORY},
        { EMLINK, ERRDOS, ERRgeneral, NT_STATUS_TOO_MANY_LINKS },
        { EINTR,  ERRHRD, ERRgeneral, NT_STATUS_RETRY },
+#ifdef ELOOP
+       { ELOOP, 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