Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pinotree authored and raveit65 committed Dec 30, 2018
1 parent 96505c4 commit 8210880
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 374 deletions.
2 changes: 0 additions & 2 deletions libmenu/Makefile.am
Expand Up @@ -13,7 +13,6 @@ libmate_menu_include_HEADERS = \
matemenu-tree.h

libmate_menu_sources = \
canonicalize.c \
desktop-entries.c \
entry-directories.c \
matemenu-tree.c \
Expand All @@ -23,7 +22,6 @@ libmate_menu_sources = \

libmate_menu_la_SOURCES = \
$(libmate_menu_sources) \
canonicalize.h \
desktop-entries.h \
entry-directories.h \
matemenu-tree.h \
Expand Down
330 changes: 0 additions & 330 deletions libmenu/canonicalize.c

This file was deleted.

34 changes: 0 additions & 34 deletions libmenu/canonicalize.h

This file was deleted.

0 comments on commit 8210880

Please sign in to comment.