Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211154 - net-misc/vnc: `vncviewer -passwdInput true` echo the password typed
Summary: net-misc/vnc: `vncviewer -passwdInput true` echo the password typed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-23 06:41 UTC by Carlo Marcelo Arenas Belon
Modified: 2010-01-24 17:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
disable echo to stdin when using -passwdInput (38_all_vnc-password-stdin-noecho.patch,1.43 KB, patch)
2008-02-23 07:47 UTC, Carlo Marcelo Arenas Belon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo Marcelo Arenas Belon 2008-02-23 06:41:08 UTC
-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);
Comment 1 Carlo Marcelo Arenas Belon 2008-02-23 07:47:58 UTC
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
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2010-01-24 17:37:55 UTC
Submit this to tigervnc's upstream please. net-misc/vnc is dead