From b195059bc8c9c7ff59538d908e81022d94515400 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Mon, 24 Feb 2014 15:11:10 -0500 Subject: Add -T option as a no-op This is an option from ssh which disables pseudo-tty allocation. Since we don't allocate them in the first place, we're compatible with it. --- qarsh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qarsh.c b/qarsh.c index 58f449c..b7814df 100644 --- a/qarsh.c +++ b/qarsh.c @@ -458,7 +458,7 @@ main(int argc, char *argv[]) } again: - while ((c = getopt(argc, argv, "+p:l:g:t:")) != -1) { + while ((c = getopt(argc, argv, "+p:l:g:t:T:")) != -1) { switch (c) { case 'l': remuser = strdup(optarg); @@ -472,6 +472,8 @@ again: case 't': max_timeout = atoi(optarg); break; + case 'T': /* ssh option to disable pseudo-tty allocation */ + break; case '?': default: printf("Unknown option %c\n", (char)optopt); -- cgit