]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix invoking Emacs via a symlink on Cygwin
authorKen Brown <kbrown@cornell.edu>
Thu, 27 Jun 2019 17:43:27 +0000 (13:43 -0400)
committerKen Brown <kbrown@cornell.edu>
Thu, 27 Jun 2019 17:43:27 +0000 (13:43 -0400)
* src/emacs.c (load_pdump) [CYGWIN]: Strip ".exe" suffix.

src/emacs.c

index d5eccf78d80faea6d8bba44ab96c0fcf866e4710..32bb57e27251b4e90b00a913a5cf94aa9fa0efd8 100644 (file)
@@ -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