diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-21 15:10:44 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-01-21 16:14:27 +0100 |
commit | 9a226532221b88369b913bc9f9d6ec335620349f (patch) | |
tree | c6eee79c808026fb97f974ff25fc3517ccf8a36d /source3/smbd | |
parent | d221d53f3a523ac014e9f33b67f0b7d777dfb171 (diff) | |
download | samba-9a226532221b88369b913bc9f9d6ec335620349f.tar.gz samba-9a226532221b88369b913bc9f9d6ec335620349f.tar.bz2 samba-9a226532221b88369b913bc9f9d6ec335620349f.zip |
Add SMB_VFS_FS_CAPABILITIES
It turns out that this is a necessary operation, separate from statvfs. statvfs
can fail during tcon, so conn->fs_capabilities would never see that we support
streams on a particular share.
James, can you check that I got the darwin variant right? Thanks!
(This used to be commit 3ad798d803b3b023533bb48e6993885f22b96095)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/service.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index ed8061e2f7..a8aa25405a 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1171,16 +1171,8 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser, * assumes that all the filesystem mounted withing a share path have * the same characteristics, which is likely but not guaranteed. */ - { - vfs_statvfs_struct svfs; - - conn->fs_capabilities = - FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES; - if (SMB_VFS_STATVFS(conn, conn->connectpath, &svfs) == 0) { - conn->fs_capabilities = svfs.FsCapabilities; - } - } + conn->fs_capabilities = SMB_VFS_FS_CAPABILITIES(conn); /* * Print out the 'connected as' stuff here as we need |