changeset 616:0a24e0cb76b9

Recursive calls was detected. Fix your PATH!
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 18 May 2016 14:55:53 +0300
parents 046d94b5c265
children 17b49d08a1a6
files cygwin/cygrun/cygrun.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cygwin/cygrun/cygrun.c	Wed May 18 14:44:01 2016 +0300
+++ b/cygwin/cygrun/cygrun.c	Wed May 18 14:55:53 2016 +0300
@@ -17,8 +17,10 @@
     char *start, *end;
 
     /* Break infinite loading itself if appropriate shell script absent. */
-    if (getenv("CYGRUN"))
+    if (getenv("CYGRUN")) {
+        fprintf(stderr, "Recursive calls was detected. Fix your PATH!");
         exit(1);
+    }
 
     start = strrchr(*argv, '/');
     if (start)