Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282428 - net-misc/networkmanager-openvpn-0.7.1 doesn't work with sys-libs/glibc-2.10.1
Summary: net-misc/networkmanager-openvpn-0.7.1 doesn't work with sys-libs/glibc-2.10.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Buchholz (RETIRED)
URL: http://git.gnome.org./cgit/network-ma...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-23 12:28 UTC by Alexander E. Patrakov
Modified: 2009-08-24 14:12 UTC (History)
2 users (show)

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 Alexander E. Patrakov 2009-08-23 12:28:28 UTC
networkmanager-openvpn-0.7.1 uses the following sscanf to see if openvpn asks for some password:

if (sscanf (str, ">PASSWORD:Need '%a[^']'", &auth) > 0) {

However, with sys-libs/glibc-2.10.1, this sscanf doesn't work, as can be tested by a simple standalone C program:

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

int main(int argc, char *argv[])
{
	char *auth;
	int result = sscanf(argv[1], ">PASSWORD:Need '%a[^']'", &auth);
	if (result > 0) {
		printf("auth: %s\n", auth);
		free(auth);
	} else {
		printf("No auth, result=%d, errno=%d\n", result, errno);
	}
	return 0;
}

One can change "%a" to "%m" (a more modern form of the same GNU extension), or apply the patch at the URL above.

Reproducible: Always

Steps to Reproduce:
Create an openvpn connection with a private key using NetworkManager. Start wireshark, tell it to capture on all interfaces. Attempt to start the connection.
Actual Results:  
On the openvpn control socket (127.0.0.1:1194), openvpn asks for a private key password. It never gets a reply and thus doesn't even attempt to contach the openvpn server.

Expected Results:  
Some packets should flow both on the control connection (openvpn should receive a password there) and to/from the openvpn server. The connection should be established.
Comment 1 Robert Piasek (RETIRED) gentoo-dev 2009-08-24 14:12:41 UTC
Added to the tree. Thanks for providing link to the patch.