This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 2f5f693b129ed1950d5cee20cdfb08ff4df6f51a
Author: zhengyu16 <[email protected]>
AuthorDate: Mon Jan 26 10:53:42 2026 +0800

    libarchive: add CONFIG_UTILS_LIBARCHIVE_WINDOWS_PATH_SUPPORT
    
    Disabling it saves 0.11K under LTO.
    
    Signed-off-by: zhengyu16 <[email protected]>
    Signed-off-by: tengshuangshuang <[email protected]>
---
 ...onfig-utils-libarchive-windows-path-support.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git 
a/system/libarchive/0007-add-config-utils-libarchive-windows-path-support.patch 
b/system/libarchive/0007-add-config-utils-libarchive-windows-path-support.patch
new file mode 100644
index 000000000..6ac7b74c0
--- /dev/null
+++ 
b/system/libarchive/0007-add-config-utils-libarchive-windows-path-support.patch
@@ -0,0 +1,20 @@
+diff --git a/libarchive/archive_read_support_format_zip.c 
b/libarchive/archive_read_support_format_zip.c
+index 848bd6e0..9b49bf85 100644
+--- a/libarchive/archive_read_support_format_zip.c
++++ b/libarchive/archive_read_support_format_zip.c
+@@ -1059,6 +1059,7 @@ zip_read_local_file_header(struct archive_read *a, 
struct archive_entry *entry,
+               zip_entry->mode |= 0664;
+       }
+ 
++#ifdef CONFIG_UTILS_LIBARCHIVE_WINDOWS_PATH_SUPPORT
+       /* Windows archivers sometimes use backslash as the directory
+        * separator. Normalize to slash. */
+       if (zip_entry->system == 0 &&
+@@ -1076,6 +1077,7 @@ zip_read_local_file_header(struct archive_read *a, 
struct archive_entry *entry,
+                       archive_wstring_free(&s);
+               }
+       }
++#endif
+ 
+       /* Make sure that entries with a trailing '/' are marked as directories
+        * even if the External File Attributes contains bogus values.  If this

Reply via email to