vfs_fruit: in fruit_rmdir() check ._ files before deleting them
authorRalph Boehme <slow@samba.org>
Fri, 9 Dec 2016 17:24:40 +0000 (18:24 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
commitb95d2042e51ad4c2854e3b2465d55a063bc19f95
treed5edc1bd2ef9547031219f09271f007d0507d414
parent19854072dbb7a9ba97d48f4012ea3a238721fc58
vfs_fruit: in fruit_rmdir() check ._ files before deleting them

This ensures we only delete valid AppleDouble files whose names begin
with "._", not just *any* file that matches "^._*".

Also use proper VFS functions instead of direclty calling the C library
functions.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_fruit.c