blob: f960c9862263b64b195900cb96a78d57068da9b8 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From bfe68126693f9159f7ac66a69217e0b5f43e5781 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 20 Jul 2017 21:11:21 -0700
4Subject: [PATCH 4/5] wvcrash: Replace use of basename API
5
6musl does not have this API
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
Patrick Williams520786c2023-06-25 16:20:36 -050010Upstream-Status: Pending
11
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012 utils/wvcrash.cc | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/utils/wvcrash.cc b/utils/wvcrash.cc
16index 0417759..3d160b7 100644
17--- a/utils/wvcrash.cc
18+++ b/utils/wvcrash.cc
19@@ -404,7 +404,7 @@ extern void __wvcrash_init_buffers(const char *program_name);
20 void wvcrash_setup(const char *_argv0, const char *_desc)
21 {
22 if (_argv0)
23- argv0 = basename(_argv0);
24+ argv0 = strrchr(_argv0, '/') ? strrchr(_argv0, '/')+1 : _argv0;
25 __wvcrash_init_buffers(argv0);
26 if (_desc)
27 {
28--
292.13.3
30