Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237078 - net-misc/vpnc start script doesn't use tty output
Summary: net-misc/vpnc start script doesn't use tty output
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 16:34 UTC by Eckard Brauer
Modified: 2008-09-11 22:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eckard Brauer 2008-09-08 16:34:13 UTC
Even if /etc/conf.d/vpnc has

VPNCOUTPUT="yes"

no output is generated while starting /etc/init.d/vpnc.

Reproducible: Always

Steps to Reproduce:
1.Ensure /etc/conf.d/vpnc has VPNCOUTPUT="yes"
2.Ensure appropriate vpnc configuration and symlink in /etc/init.d
3.run "/etc/init.d/vpnc.<your_client> start"
4.try getting some food before waiting too long ;)

Actual Results:  
Nothing is displayed

Expected Results:  
Prompt for Password should be displayed

Patch /etc/init.d/vpnc as follows. It's only because config isn't sourced in init script:

--- /etc/init.d/vpnc.orig       2008-09-08 18:00:14.000000000 +0200
+++ /etc/init.d/vpnc    2008-09-08 18:05:53.000000000 +0200
@@ -39,6 +39,7 @@
 }

 screenoutput() {
+    . /etc/conf.d/vpnc
     if [ "${VPNCOUTPUT}" = "yes" ]; then
        export SCREEN_OUTPUT="/dev/stdout"
     else
Comment 1 Wormo (RETIRED) gentoo-dev 2008-09-08 18:00:07 UTC
Thanks for reporting this fix. Assigning to maintainer.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-11 22:31:13 UTC
This happens if the init script is not named vpnc, which is a likely use case regarding our own documentation.  Thanks for the pointer, I moved sourcing to a different location, but it should work. Remerge for the new version to hit your system.