]> mj.ucw.cz Git - minsk.git/commitdiff
Minsk: Added a backdoor :)
authorMartin Mares <mj@ucw.cz>
Sun, 21 Nov 2010 19:50:05 +0000 (20:50 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 27 Dec 2010 16:13:48 +0000 (17:13 +0100)
in-print
minsk.c

index c7e1e8d1463eb9bb439816bdb47e25f627af71b9..0cd5176096e993f2706836933c0fefbc03164e0f 100644 (file)
--- a/in-print
+++ b/in-print
@@ -1,4 +1,5 @@
 ; A test of printing
+;daji_zor_i_litva=3
 
 @0001
 +002215053170
diff --git a/minsk.c b/minsk.c
index 99c6aff88d61d2f6035e7c2c87478bc2a258b0f5..d9606ef3b424ed857d14cb1b5f448dd47cfd48e1 100644 (file)
--- a/minsk.c
+++ b/minsk.c
@@ -193,7 +193,16 @@ static void parse_in(void)
 
       char *c = line;
       if (!c[0] || c[0] == ';')
-       continue;
+       {
+         if (!strncmp(c, ";daji_zor_i_litva=", 18))
+           {
+             trace = atoi(c+18);
+             if (error_hook)
+               error_hook("Secret tracing switch flipped");
+           }
+         continue;
+       }
+
       if (c[0] == '@')
        {
          c++;