]> git.eshelyaron.com Git - emacs.git/commit
Fix resolution of symlinks during dumping
authorEli Zaretskii <eliz@gnu.org>
Thu, 27 May 2021 13:31:14 +0000 (16:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 27 May 2021 13:31:14 +0000 (16:31 +0300)
commitd3817ad6ce7b719c89d4049bdd12b168e3053a76
tree6267b049782f4d4256afa3d9eaea0a05520fceed
parent00f5c2fa3834d1beb780cae22921126a1f9ddb1d
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.
nt/mingw-cfg.site
src/comp.c
src/w32.c
src/w32.h