diff options
Diffstat (limited to 'community/frr/fix-basename.patch')
-rw-r--r-- | community/frr/fix-basename.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/community/frr/fix-basename.patch b/community/frr/fix-basename.patch new file mode 100644 index 00000000000..1873a29ca5c --- /dev/null +++ b/community/frr/fix-basename.patch @@ -0,0 +1,12 @@ +--- a/zebra/zebra_netns_notify.c ++++ b/zebra/zebra_netns_notify.c +@@ -34,6 +34,9 @@ + + #ifdef HAVE_NETLINK + ++#define basename(path) \ ++ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path)) ++ + /* upon creation of folder under /var/run/netns, + * wait that netns context is bound to + * that folder 10 seconds |