summaryrefslogtreecommitdiff
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2013-08-18 07:34:31 -0700
committerJeremy Allison <jra@samba.org>2013-08-19 22:21:34 +0200
commit74829fecd7a4e806ee441cd75141bede2eefef1a (patch)
treee47286eebe0af599bfa5386b198097bf575aba83 /source3/smbd/dosmode.c
parent02618cc58a49864bd0bf280d9f13a7f39fcf9658 (diff)
downloadsamba-74829fecd7a4e806ee441cd75141bede2eefef1a.tar.gz
samba-74829fecd7a4e806ee441cd75141bede2eefef1a.tar.bz2
samba-74829fecd7a4e806ee441cd75141bede2eefef1a.zip
Fix bug #10097 - MacOSX 10.9 will not follow path-based DFS referrals handed out by Samba.
Windows overloads the EA Length field in the DIRECTORY INFO leves of FIND FIRST/FIND NEXT. This field indicates either the REPARSE_TAG if the file/folder has a reparse proint or the EA Length if it has EAs, and is the fundamental reason you cannot have both on a file or folder. Signed-off-by: Richard Sharpe <rsharpe@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Aug 19 22:21:34 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index a6ad107a01..2d07dd9aa7 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -489,6 +489,11 @@ uint32 dos_mode_msdfs(connection_struct *conn,
result = filter_mode_by_protocol(result);
+ /*
+ * Add in that it is a reparse point
+ */
+ result |= FILE_ATTRIBUTE_REPARSE_POINT;
+
DEBUG(8,("dos_mode_msdfs returning "));
if (result & FILE_ATTRIBUTE_HIDDEN) DEBUG(8, ("h"));