projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b70c39
)
Add some comments
author
Shea Levy
<shea@shealevy.com>
Thu, 8 Sep 2011 06:47:18 +0000
(
02:47
-0400)
committer
Shea Levy
<shea@shealevy.com>
Thu, 8 Sep 2011 06:47:18 +0000
(
02:47
-0400)
client/X11/xfreerdp.c
patch
|
blob
|
history
diff --git
a/client/X11/xfreerdp.c
b/client/X11/xfreerdp.c
index
de5dcb9
..
d930d45
100644
(file)
--- a/
client/X11/xfreerdp.c
+++ b/
client/X11/xfreerdp.c
@@
-737,6
+737,7
@@
int main(int argc, char* argv[])
printf("Password: ");
+ /* Turn off ECHO on stdin, but still echo newlines */
if (tcgetattr(fileno(stdin), &orig_flags) != 0)
{
perror(strerror(errno));
@@
-754,6
+755,7
@@
int main(int argc, char* argv[])
fgets(password, 512 - 1, stdin);
+ /* Reset stdin to how it was */
if (tcsetattr(fileno(stdin), TCSADRAIN, &orig_flags) != 0)
{
tcsetattr(fileno(stdin), TCSANOW, &orig_flags);