mc in mc patch
Max Schedriviy
max at tavrida.net
Fri Aug 17 15:06:42 UTC 2001
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 at tavrida.net
More information about the mc-devel
mailing list