From: Tobias Stoeckmann Date: Mon, 20 Apr 2026 15:41:52 +0000 (+0200) Subject: Fix more handling of missing const type qualifiers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea95e6d53b9c0e46ceec75d79f9789f1cf98ed03;p=thirdparty%2Flibarchive.git Fix more handling of missing const type qualifiers Add missing const qualifier which otherwise triggers build errors beginning with glibc 2.43. Signed-off-by: Tobias Stoeckmann --- diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c index eb676e947..e7281d0b5 100644 --- a/libarchive/archive_write_set_format_xar.c +++ b/libarchive/archive_write_set_format_xar.c @@ -2272,7 +2272,7 @@ file_gen_utility_names(struct archive_write *a, struct file *file) static int get_path_component(char *name, int n, const char *fn) { - char *p; + const char *p; int l; p = strchr(fn, '/');