diff options
author | Eli Zaretskii <eliz@gnu.org> | 2021-05-27 16:31:14 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-05-27 16:31:14 +0300 |
commit | d3817ad6ce7b719c89d4049bdd12b168e3053a76 (patch) | |
tree | 6267b049782f4d4256afa3d9eaea0a05520fceed /nt | |
parent | 00f5c2fa3834d1beb780cae22921126a1f9ddb1d (diff) | |
download | emacs-d3817ad6ce7b719c89d4049bdd12b168e3053a76.tar.gz |
Fix resolution of symlinks during dumping
* src/comp.c (Fcomp_el_to_eln_rel_filename): Don't use
'file-truename', as it is only available once files.el is loaded,
which doesn't work during dumping, until loadup loads files.el.
Instead, use 'realpath'. (Bug#48578)
* src/w32.c (realpath): New function.
* src/w32.h (realpath): Add prototype.
* nt/mingw-cfg.site (ac_cv_func_realpath)
(gl_cv_func_realpath_works): Define to "yes", as this function is
now implemented in w32.c.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/mingw-cfg.site | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index 431fdab51bb..6ab81e943f1 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -90,8 +90,9 @@ ac_cv_func_readlinkat=yes ac_cv_func_faccessat=yes # Avoid compiling Gnulib's canonicalize-lgpl.c, which fails ac_cv_func_canonicalize_file_name=yes -ac_cv_func_realpath="not-needed" -gl_cv_func_realpath_works="no-but-not-needed-so-yes" +# Implemented in w32.c +ac_cv_func_realpath=yes +gl_cv_func_realpath_works=yes # Implemented in w32.c ac_cv_func_fcntl=yes gl_cv_func_fcntl_f_dupfd_cloexec=yes |