From 2be24d8aa59f8314856de791a7236376682fec5b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 19 Sep 2007 12:24:07 +0000 Subject: - do away with SUSv3 legacy functions --- package/vpnc/vpnc-0.5.1-susv3-legacy.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/vpnc/vpnc-0.5.1-susv3-legacy.patch (limited to 'package') diff --git a/package/vpnc/vpnc-0.5.1-susv3-legacy.patch b/package/vpnc/vpnc-0.5.1-susv3-legacy.patch new file mode 100644 index 000000000..2e577e388 --- /dev/null +++ b/package/vpnc/vpnc-0.5.1-susv3-legacy.patch @@ -0,0 +1,12 @@ +diff -rdup vpnc-0.5.1.oorig/config.c vpnc-0.5.1/config.c +--- vpnc-0.5.1.oorig/config.c 2007-09-10 22:39:48.000000000 +0200 ++++ vpnc-0.5.1/config.c 2007-09-19 14:19:46.000000000 +0200 +@@ -538,7 +538,7 @@ static char *get_config_filename(const c + { + char *realname; + +- asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : ""); ++ asprintf(&realname, "%s%s%s", strchr(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : ""); + return realname; + } + -- cgit v1.2.3