summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2014-02-24 15:11:10 -0500
committerNathan Straz <nstraz@redhat.com>2014-02-25 10:06:36 -0500
commitb195059bc8c9c7ff59538d908e81022d94515400 (patch)
treee92788524ee4ebbf6f70431be7d76878330cc088
parent5a817b5216bf4aa6e453f6716b410ef88142619c (diff)
downloadqarsh-b195059bc8c9c7ff59538d908e81022d94515400.tar.gz
qarsh-b195059bc8c9c7ff59538d908e81022d94515400.tar.xz
qarsh-b195059bc8c9c7ff59538d908e81022d94515400.zip
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.
-rw-r--r--qarsh.c4
1 files changed, 3 insertions, 1 deletions
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);