aports/testing/proot/fix-basename.patch
Celeste 73c202b2ad testing/proot: take over maintainership
obtained permission via email, the previous maintainer
has stopped using Alpine, so i've also taken over
e2tools and libusrsctp in the previous 2 commits
2024-09-18 06:38:14 +00:00

12 lines
217 B
Diff

--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -49,6 +49,9 @@
#include "build.h"
+#define basename(path) \
+ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
+
/**
* Print a (@detailed) usage of PRoot.
*/