vfs_fruit: handling of empty resource fork
authorRalph Boehme <slow@samba.org>
Sat, 8 Aug 2015 18:21:39 +0000 (20:21 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 2 Sep 2015 01:50:21 +0000 (03:50 +0200)
commit34759c8e7c9939c377f7b9e7486cc533daa28625
treee31a7aaac76bb9ffb34236f435038aad99e3ecd5
parentba6c7df7f9d0c2d54b6b7e8b423b753cb7ccac31
vfs_fruit: handling of empty resource fork

Opening the resource fork stream with O_CREAT mustn't create a visible
node in the filesystem, only create a file handle. As long as the
creator didn't write into the stream, other openers withour O_CREAT
MUST get an ENOENT error. This is way OS X SMB server implements it.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11467

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c