From: Art Cancro Date: Sat, 14 May 2016 15:09:19 +0000 (-0400) Subject: ignore -p when called from telnetd X-Git-Tag: v939~664 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=dc459e3c2f92adc3f9709ba04d353ffc49c26466 ignore -p when called from telnetd --- diff --git a/textclient/src/citadel.c b/textclient/src/citadel.c index 52765a76b..5e8cc6203 100644 --- a/textclient/src/citadel.c +++ b/textclient/src/citadel.c @@ -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();