summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-16 17:40:58 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-16 17:40:58 +0000
commit967dcab94580a0c1bf9ee6335abc0d64001154b4 (patch)
tree974a78079471c6de5ffe14e3e3b4b37b14d4ee49 /source3/smbd
parent62811de4e84f21aafff161dbf151e487660144e5 (diff)
downloadsamba-967dcab94580a0c1bf9ee6335abc0d64001154b4.tar.gz
samba-967dcab94580a0c1bf9ee6335abc0d64001154b4.tar.bz2
samba-967dcab94580a0c1bf9ee6335abc0d64001154b4.zip
only do the MAC extensions if we are a NTFS filesystem
(This used to be commit 91d224735d1a4ef26d75d87e3b35d8d156b8998b)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 550be0df41..f9186115f5 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1171,12 +1171,16 @@ static int call_trans2qfsinfo(connection_struct *conn,
SIVAL(pdata,4,0); /* characteristics */
break;
case SMB_MAC_QUERY_FS_INFO:
- /*
- * Thursby MAC extension...
- */
- data_len = 88;
- SIVAL(pdata,84,0x100); /* Don't support mac... */
- break;
+ /*
+ * Thursby MAC extension... ONLY on NTFS filesystems
+ * once we do streams then we don't need this
+ */
+ if (strequal(lp_fstype(SNUM(conn)),"NTFS")) {
+ data_len = 88;
+ SIVAL(pdata,84,0x100); /* Don't support mac... */
+ break;
+ }
+ /* drop through */
default:
return(ERROR(ERRDOS,ERRunknownlevel));
}