[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Fri Nov 17 11:08:01 UTC 2023


The branch, master has been updated
       via  88174f48d2e vfs_fruit: ignore ENAMETOOLONG in fruit_unlink_rsrc_adouble()
      from  82f021d43de pidl: include scompat headers and servers in s3 server template

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 88174f48d2ecb1c9ebb74a0eb45c4fa8e20eb923
Author: MikeLiu <mikeliu at qnap.com>
Date:   Thu Oct 26 16:15:39 2023 +0800

    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 at qnap.com>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    Reviewed-by: Ralph Boehme <slow at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Fri Nov 17 11:07:01 UTC 2023 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_fruit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index b510b04aea6..b3dd6016ae3 100644
--- a/source3/modules/vfs_fruit.c
+++ b/source3/modules/vfs_fruit.c
@@ -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;
 	}
 


-- 
Samba Shared Repository



More information about the samba-cvs mailing list