From b844f3c0bf36de574c7cc7e2cb4c1aa86e7e41c0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 7 Aug 2002 18:43:40 +0000 Subject: [PATCH] Some of the new options shouldn't be available in the file transfer tools. [originally from svn r1820] --- cmdline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmdline.c b/cmdline.c index 572a4335..05072a77 100644 --- a/cmdline.c +++ b/cmdline.c @@ -236,33 +236,39 @@ int cmdline_process_param(char *p, char *value, int need_save) if (!strcmp(p, "-A")) { RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER); SAVEABLE(1); cfg.agentfwd = 1; } if (!strcmp(p, "-a")) { RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER); SAVEABLE(1); cfg.agentfwd = 0; } if (!strcmp(p, "-X")) { RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER); SAVEABLE(1); cfg.x11_forward = 1; } if (!strcmp(p, "-x")) { RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER); SAVEABLE(1); cfg.x11_forward = 0; } if (!strcmp(p, "-t")) { RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER); SAVEABLE(1); cfg.nopty = 0; } if (!strcmp(p, "-T")) { RETURN(1); + UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER); SAVEABLE(1); cfg.nopty = 1; }