acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH acl] libmisc: internalize walk_tree API


From: Mike Frysinger
Subject: [PATCH acl] libmisc: internalize walk_tree API
Date: Wed, 31 Jan 2024 23:57:03 -0500

While shared libs take care of hiding these symbols from the exported
list, they can still show up in static linking and cause collisions.
The codebase is using __acl_ as a prefix for other internal symbols,
so rename these to match.

We can cheat here with a define so the rest of the codebase doesn't
need to be changed to the more verbose form.
---
 include/walk_tree.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/walk_tree.h b/include/walk_tree.h
index 4773194f4192..a5c61305ebb8 100644
--- a/include/walk_tree.h
+++ b/include/walk_tree.h
@@ -33,6 +33,8 @@
 
 struct stat;
 
+#define walk_tree __acl_walk_tree
+
 extern int walk_tree(const char *path, int walk_flags, unsigned int num,
                     int (*func)(const char *, const struct stat *, int,
                                 void *), void *arg);
-- 
2.43.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]