diff options
author | Ralph Boehme <slow@samba.org> | 2018-10-20 14:53:50 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-10-31 21:27:20 +0100 |
commit | ebfcf75e993b1a792db76b94aa898532e1c81eeb (patch) | |
tree | c9a5cf6f81e53e5baa921d758029c4f174596d29 /source3/passdb/pdb_tdb.c | |
parent | 046456fca60b9fef38a0cdf5a116883fb1c7dffe (diff) | |
download | samba-ebfcf75e993b1a792db76b94aa898532e1c81eeb.tar.gz |
vfs_fruit: filter empty streams
First step in achieving macOS compliant behaviour wrt to empty streams:
- hide empty streams in streaminfo
- prevent opens of empty streams
This means that we may carry 0-byte sized streams in our streams
backend, but this shouldn't really hurt.
The previous attempt of deleting the streams when an SMB setinfo eof to
0 request came in, turned out be a road into desaster.
We could set delete-on-close on the stream, but that means we'd have to
check for it for every write on a stream and checking the
delete-on-close bits requires fetching the locking.tdb record, so this
is expensive and I'd like to avoid that overhead.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13646
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
0 files changed, 0 insertions, 0 deletions