The branch stable/15 has been updated by kfv: URL: https://cgit.FreeBSD.org/src/commit/?id=ad60cb1085bc4074c33f52d40105e3e9c7381a9a
commit ad60cb1085bc4074c33f52d40105e3e9c7381a9a Author: Faraz Vahedi <[email protected]> AuthorDate: 2026-09-19 10:15:35 +0000 Commit: Faraz Vahedi <[email protected]> CommitDate: 2026-10-03 15:20:52 +0000 pkg(7): Preserve const qualifier on strrchr(3) results Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D59777 (cherry picked from commit 47f9e665078210cf15cc3914611dccabda6084a4) --- usr.sbin/pkg/pkg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 7b0a67e69a4c..dde4c79eb99f 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -168,7 +168,7 @@ extract_pkg_static(int fd, char *p, int sz) { struct archive *a; struct archive_entry *ae; - char *end; + const char *end; int ret, r; ret = -1; @@ -1033,7 +1033,7 @@ cleanup: static bool pkg_is_pkg_pkg(const char *pkg) { - char *vstart, *basename; + const char *vstart, *basename; size_t namelen; /* Strip path. */
