Re: Method to enable Quiet - WeOnlyDo Discussion board

Re: Method to enable Quiet (General questions)

by Michael, Wednesday, October 31, 2007, 22:10 (6233 days ago) @ wodDamir

Here's the code from putty source SSH.C
/*
* Now is a convenient point to spew any banner material
* that we've accumulated. (This should ensure that when
* we exit the auth loop, we haven't any left to deal
* with.)
*/
{
int size = bufchain_size(&ssh->banner);
/*
* Don't show the banner if we're operating in
* non-verbose non-interactive mode. (It's probably
* a script, which means nobody will read the
* banner _anyway_, and moreover the printing of
* the banner will screw up processing on the
* output of (say) plink.)
*/
if (size && (flags & (FLAG_VERBOSE | FLAG_INTERACTIVE))) {
char *banner = snewn(size, char);
bufchain_fetch(&ssh->banner, banner, size);
c_write_untrusted(ssh, banner, size);
sfree(banner);
}
bufchain_clear(&ssh->banner);
}

So I guess the question really is if you set the Command method, does Wod reset the interactive flag?


Complete thread: