Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354356 Details for
Bug 178546
>=net-firewall/fwknop-2.6.1 is a system for doing single packet auth
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fwknop-2.5.0-Reset-terminal-setting-to-orignal-values-after-enter.patch
fwknop-2.5.0-Reset-terminal-setting-to-orignal-values-after-enter.patch (text/plain), 1.24 KB, created by
Coacher
on 2013-07-28 02:35:14 UTC
(
hide
)
Description:
fwknop-2.5.0-Reset-terminal-setting-to-orignal-values-after-enter.patch
Filename:
MIME Type:
Creator:
Coacher
Created:
2013-07-28 02:35:14 UTC
Size:
1.24 KB
patch
obsolete
>From 5ec4998aaa603b01f607a6da6877a03501a513ac Mon Sep 17 00:00:00 2001 >From: Damien Stuart <dstuart@dstuart.org> >Date: Wed, 24 Jul 2013 14:38:08 -0400 >Subject: [PATCH 1/1] Reset terminal setting to orignal values after entering > keys via stdin > >--- > client/getpasswd.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/client/getpasswd.c b/client/getpasswd.c >index b3d4ba5..f1061be 100644 >--- a/client/getpasswd.c >+++ b/client/getpasswd.c >@@ -136,6 +136,7 @@ getpasswd(const char *prompt, int fd) > #ifndef WIN32 > sigset_t sig, old_sig; > struct termios ts; >+ int old_c_lflag; > #else > /* Force stdin on windows. */ > fd = 0; >@@ -178,6 +179,7 @@ getpasswd(const char *prompt, int fd) > * - disable cannonical mode (input read line by line mode) > */ > tcgetattr(fileno(fp), &ts); >+ old_c_lflag = ts.c_lflag; > ts.c_lflag &= ~(ECHO | ICANON | ISIG); > tcsetattr(fileno(fp), TCSAFLUSH, &ts); > >@@ -194,6 +196,12 @@ getpasswd(const char *prompt, int fd) > */ > _putch(PW_CR_CHAR); > _putch(PW_LF_CHAR); >+#else >+ /* Reset terminal settings >+ */ >+ fputs("\n", fp); >+ ts.c_lflag = old_c_lflag; >+ tcsetattr(fileno(fp), TCSAFLUSH, &ts); > #endif > > fclose(fp); >-- >1.8.1.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178546
:
209741
|
226159
|
226177
|
322804
|
322806
|
322808
|
335058
|
335062
|
335066
|
354354
|
354356
|
354358
|
354360
|
354362
|
354366