Skip to content

Commit 8210880

Browse files
pinotreeraveit65
authored andcommitted
Switch to modern realpath()
Assume everywhere that the realpath() implementation has the POSIX.1-2008 behaviour, i.e. allowing NULL as second parameter and thus returning a newly allocated buffer; it is not just a GNU extension, and supported already by modern libc's on other OSes. menu_canonicalize_file_name() is always called with FALSE as second parameter, so it is replaced directly by realpath(); this allows the complete removal of canonicalize.{c,h}. This is a forward-port of the same changes done in gnome-menus, see: https://gitlab.gnome.org/GNOME/gnome-menus/merge_requests/4
1 parent 96505c4 commit 8210880

File tree

6 files changed

+7
-374
lines changed

6 files changed

+7
-374
lines changed

‎libmenu/Makefile.am‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ libmate_menu_include_HEADERS = \
1313
matemenu-tree.h
1414

1515
libmate_menu_sources = \
16-
canonicalize.c \
1716
desktop-entries.c \
1817
entry-directories.c \
1918
matemenu-tree.c \
@@ -23,7 +22,6 @@ libmate_menu_sources = \
2322

2423
libmate_menu_la_SOURCES = \
2524
$(libmate_menu_sources) \
26-
canonicalize.h \
2725
desktop-entries.h \
2826
entry-directories.h \
2927
matemenu-tree.h \

‎libmenu/canonicalize.c‎

Lines changed: 0 additions & 330 deletions
This file was deleted.

‎libmenu/canonicalize.h‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)