-passwdInput is added to the realvnc ebuild (at least in version 4.1.2-r3) as part of patch 37_all_vnc-password-stdin.patch, that retrieves the password from stdin (using a 3 line C++ std::cin call). as a result the password is getting printed as it is typed, while it is expected for passwords that they are entered without echo. Reproducible: Always Steps to Reproduce: 1. vncviewer -passwdInput true 2. type password 3. Actual Results: password is echo Expected Results: no echo a new patch could be applied on top of 37 or patch 37 changed so that STDIN has echo disabled while the password is entered with code like : #include <termios.h> termios t; tcgetattr (STDIN_FILENO, &t); t.c_lflag &= (~ECHO); tcsetattr (STDIN_FILENO, TCSANOW, &t); ... t.c_lflag |= ECHO; tcsetattr (STDIN_FILENO, TCSANOW, &t);
Created attachment 144402 [details, diff] disable echo to stdin when using -passwdInput can be added to the vnc-4.1.2-r{3,4}-patches-0.2.tar.bz2. tested in ~amd64
Submit this to tigervnc's upstream please. net-misc/vnc is dead