aports/main/audit/fix-basename.patch
2025-07-31 15:17:47 +00:00

13 lines
225 B
Diff

--- a/lib/libaudit.c
+++ b/lib/libaudit.c
@@ -57,6 +57,9 @@
#define IORING_OP_LAST 37
#endif
+#define basename(path) \
+ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
+
/* Local prototypes */
struct nv_pair
{