From: Ken Brown Date: Thu, 27 Jun 2019 17:43:27 +0000 (-0400) Subject: Fix invoking Emacs via a symlink on Cygwin X-Git-Tag: emacs-27.0.90~2187 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e51f328465759b8da9031c6fc30d3fd14f1a0c38;p=emacs.git Fix invoking Emacs via a symlink on Cygwin * src/emacs.c (load_pdump) [CYGWIN]: Strip ".exe" suffix. --- diff --git a/src/emacs.c b/src/emacs.c index d5eccf78d80..32bb57e2725 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -813,7 +813,7 @@ load_pdump (int argc, char **argv) char *exename = NULL; char *real_exename = NULL; const char* strip_suffix = -#ifdef DOS_NT +#if defined DOS_NT || defined CYGWIN ".exe" #else NULL