ignore -p when called from telnetd
authorArt Cancro <ajc@citadel.org>
Sat, 14 May 2016 15:09:19 +0000 (11:09 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 14 May 2016 15:09:19 +0000 (11:09 -0400)
textclient/src/citadel.c

index 52765a76b4a20870a0a37e898f51a3b30fcbcca4..5e8cc6203e7f964d4bdff2d549a8d0f376e1f63e 100644 (file)
@@ -1464,6 +1464,10 @@ int main(int argc, char **argv)
                        return 1;
 #endif
                }
+               if (!strcmp(argv[a], "-p")) {
+                       // ignore this argument when called from telnetd
+                       argc = shift(argc, argv, a, 1);
+               }
        }
        
        screen_new();