diff options
author | Nathan Straz <nstraz@redhat.com> | 2014-02-24 15:11:10 -0500 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2014-02-25 10:06:36 -0500 |
commit | b195059bc8c9c7ff59538d908e81022d94515400 (patch) | |
tree | e92788524ee4ebbf6f70431be7d76878330cc088 | |
parent | 5a817b5216bf4aa6e453f6716b410ef88142619c (diff) | |
download | qarsh-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |