mc in mc patch



This patch not allow run mc in mc (from Advanced mc).

---------------------------------
--- main.c	Thu Aug 16 13:59:19 2001
+++ main.c.new	Fri Aug 17 18:00:29 2001
@@ -2974,6 +2974,11 @@
 int
 main (int argc, char *argv [])
 {
+    if(getenv("MC_CONTROL_FILE")){
+        printf("It is NOT a good idea running mc from mc!\n");
+        exit(1);
+    }
+
     /* We had LC_CTYPE before, LC_ALL includs LC_TYPE as well */
     setlocale (LC_ALL, "");
     bindtextdomain ("mc", LOCALEDIR);
---------------------------------

-- 
C U L8er!
Max Schedriviy                  mailto:max tavrida net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]