From e51f328465759b8da9031c6fc30d3fd14f1a0c38 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Thu, 27 Jun 2019 13:43:27 -0400 Subject: [PATCH] Fix invoking Emacs via a symlink on Cygwin * src/emacs.c (load_pdump) [CYGWIN]: Strip ".exe" suffix. --- src/emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2