Your message dated Wed, 28 Jan 2015 18:48:10 -0500
with message-id <[email protected]>
and subject line Re: Bug#776484: openconnect: Config file not read properly due
to optarg misuse
has caused the Debian Bug report #776484,
regarding openconnect: Config file not read properly due to optarg misuse
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
776484: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776484
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openconnect
Version: 3.20-4
Severity: normal
Tags: patch
Dear Maintainer,
when trying to use a configuration file with openconnect (--config option),
I get weird errors pointing to string corruption:
Failed to open 'tc/openconnect/vpnc-script-no-dns' for write: No such file or
directory
Inspecting the code, it seems that there is some misuse of the getopt_long
system. It assumes it is safe to use optarg for long-time storage.
The solution that works for me is an additional strdup:
--- openconnect-3.20/main.c.org 2012-05-16 17:27:00.000000000 +0200
+++ openconnect-3.20/main.c 2015-01-28 15:55:04.125868841 +0100
@@ -264,5 +264,5 @@
static int config_line_num = 0;
-#define keep_config_arg() (config_arg)
+#define keep_config_arg() (strdup(config_arg))
static int next_option(int argc, char **argv, char **config_arg)
-- System Information:
Debian Release: 7.8
APT prefers stable
APT policy: (700, 'stable'), (500, 'stable-updates'), (400, 'testing'), (350,
'experimental'), (350, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-0.bpo.2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages openconnect depends on:
ii libc6 2.13-38+deb7u7
ii libopenconnect1 3.20-4
ii libproxy0 0.3.1-6
ii libssl1.0.0 1.0.1e-2+deb7u14
ii libxml2 2.8.0+dfsg1-7+wheezy2
ii vpnc-scripts 0.1~git20120602-2
ii zlib1g 1:1.2.7.dfsg-13
openconnect recommends no packages.
openconnect suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Control: fixed -1 openconnect/4.04-1~exp1
On Wed, Jan 28, 2015 at 15:57:17 +0100, Frodo Looijaard wrote:
> when trying to use a configuration file with openconnect (--config option),
> I get weird errors pointing to string corruption:
> Failed to open 'tc/openconnect/vpnc-script-no-dns' for write: No such file
> or directory
As David noted, this is fixed in version 4.00 and newer. Closing as
fixed.
--
mike
--- End Message ---