Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 92950 Details for
Bug 142027
patch to fix stdin bug in net-misc/vpnc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for stdin bug
vpnc-stdin-fix.patch (text/plain), 560 bytes, created by
Patricio Jeraldo
on 2006-07-28 13:01:06 UTC
(
hide
)
Description:
Proposed patch for stdin bug
Filename:
MIME Type:
Creator:
Patricio Jeraldo
Created:
2006-07-28 13:01:06 UTC
Size:
560 bytes
patch
obsolete
>--- vpnc-orig/config.c 2006-07-28 13:46:20.000000000 -0500 >+++ vpnc-new/config.c 2006-07-28 13:51:00.000000000 -0500 >@@ -457,6 +457,7 @@ > { > char *s; > int i, c, known; >+ int stdinfd; > int got_conffile = 0, print_config = 0; > size_t s_len; > >@@ -576,7 +577,11 @@ > switch (i) { > case CONFIG_IPSEC_SECRET: > case CONFIG_XAUTH_PASSWORD: >- s = strdup(getpass("")); >+ stdinfd = fileno(stdin); >+ if(isatty(stdinfd)) >+ s = strdup(getpass("")); >+ else >+ getline(&s,&s_len,stdin); > break; > case CONFIG_IPSEC_GATEWAY: > case CONFIG_IPSEC_ID:
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 142027
: 92950