[PATCH] wpa_passphrase: Disable terminal echo when reading from stdin

Jouni Malinen j at w1.fi
Fri Nov 25 09:24:49 PST 2022


On Mon, Nov 21, 2022 at 10:00:27PM +0530, Abhiram V wrote:
> Disable terminal echo using tcgetattr() and tcsetattr() when reading
> passphrase from stdin.

Thanks, applied with ECHO flag re-enabling fixed:

> +		term.c_lflag &= ~ECHO;

> +		term.c_cflag |= ECHO;

Wrong control flag used here..
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list