mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
vfs_fruit: remove resource fork special casing
Directly unlinking a file with open handles is not good, don't do it. 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> (cherry picked from commit a26032c3f68028b01fb6a7d38851409db1858161)
This commit is contained in:
parent
02987f7046
commit
82783db2b1
@ -5716,10 +5716,6 @@ static int fruit_ftruncate_rsrc_xattr(struct vfs_handle_struct *handle,
|
||||
struct files_struct *fsp,
|
||||
off_t offset)
|
||||
{
|
||||
if (offset == 0) {
|
||||
return SMB_VFS_FREMOVEXATTR(fsp, AFPRESOURCE_EA_NETATALK);
|
||||
}
|
||||
|
||||
#ifdef HAVE_ATTROPEN
|
||||
return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
|
||||
#endif
|
||||
@ -5767,10 +5763,6 @@ static int fruit_ftruncate_rsrc_stream(struct vfs_handle_struct *handle,
|
||||
struct files_struct *fsp,
|
||||
off_t offset)
|
||||
{
|
||||
if (offset == 0) {
|
||||
return SMB_VFS_NEXT_UNLINK(handle, fsp->fsp_name);
|
||||
}
|
||||
|
||||
return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user