summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2014-08-29 12:22:56 +0200
committerDavid Disseldorp <ddiss@samba.org>2014-08-29 22:06:21 +0200
commitb43a5810f839df823af2eb74fa2290c64e5dfaf6 (patch)
tree164e56cceed87e474eae450de68176ab41165b72 /source4/ntvfs
parent5e3b5b53b28edfc4d343b3162d9656e6952fac07 (diff)
downloadsamba-b43a5810f839df823af2eb74fa2290c64e5dfaf6.tar.gz
ntvfs/posix: don't advertise FS_ATTR_SPARSE_FILES
Handling of the FSCTL_SET_SPARSE ioctl in ntvfs is broken. Removing FS_ATTR_SPARSE_FILES from the filesystem attributes ensures that clients, including the smbtorture ioctl tests, don't attempt to use this functionality. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allson <jra@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Fri Aug 29 22:06:21 CEST 2014 on sn-devel-104
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/vfs_posix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c
index 304a9ff8fe5..0ce2e6f5a87 100644
--- a/source4/ntvfs/posix/vfs_posix.c
+++ b/source4/ntvfs/posix/vfs_posix.c
@@ -114,8 +114,7 @@ static void pvfs_setup_options(struct pvfs_state *pvfs)
pvfs->fs_attribs =
FS_ATTR_CASE_SENSITIVE_SEARCH |
FS_ATTR_CASE_PRESERVED_NAMES |
- FS_ATTR_UNICODE_ON_DISK |
- FS_ATTR_SPARSE_FILES;
+ FS_ATTR_UNICODE_ON_DISK;
/* allow xattrs to be stored in a external tdb */
eadb = share_string_option(pvfs, scfg, PVFS_EADB, NULL);