mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
vfs_fruit: ignore ENAMETOOLONG in fruit_unlink_rsrc_adouble()
adouble_path() inside fruit_unlink_rsrc_adouble() prepend "._" to a basename, lenth of apple double filename will exceed NAME_MAX if length of basename is equal to NAME_MAX (or NAME_MAX-1). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15504 Signed-off-by: MikeLiu <mikeliu@qnap.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Nov 17 11:07:01 UTC 2023 on atb-devel-224
This commit is contained in:
parent
82f021d43d
commit
88174f48d2
@ -2110,7 +2110,7 @@ static int fruit_unlink_rsrc_adouble(vfs_handle_struct *handle,
|
||||
adp_smb_fname,
|
||||
0);
|
||||
TALLOC_FREE(adp_smb_fname);
|
||||
if ((rc != 0) && (errno == ENOENT) && force_unlink) {
|
||||
if ((rc != 0) && (errno == ENOENT || errno == ENAMETOOLONG) && force_unlink) {
|
||||
rc = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user