]> git.eshelyaron.com Git - emacs.git/commit
Prefer readlink to lstat in find_emacs_executable
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Jul 2025 12:17:35 +0000 (05:17 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 20:14:18 +0000 (22:14 +0200)
commitdb179c7aacb63a11271a5a0932734011a7edb5bb
tree76abf9e9f92f2c6f8a29eea216b4f22bb3c35437
parent238f62555bfd003cbb85971b6aa567929b405f08
Prefer readlink to lstat in find_emacs_executable

* src/emacs.c (find_emacs_executable): Prefer readlink to lstat
when testing whether a file is a symlink.  This avoids EOVERFLOW
issues.

(cherry picked from commit 67ea9485a65dee4fb654f1bc177c71028d020607)
src/emacs.c