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}.
Assume everywhere that the
realpath()
implementation has the POSIX.1-2008 behaviour, i.e. allowingNULL
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 withFALSE
as second parameter, so it is replaced directly byrealpath()
; this allows the complete removal ofcanonicalize.{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