Apply update to BETA21-userpriv-fixups.patch from Alon Bar-Lev.

epel8
Steven Pritchard 17 years ago
parent 7ebae03905
commit 9f1c9a40ef

@ -1,8 +1,8 @@
Index: openvpn/tun.c Index: openvpn/tun.c
=================================================================== ===================================================================
--- openvpn/tun.c (revision 2677) --- openvpn/tun.c (revision 2677)
+++ openvpn/tun.c (revision 2679) +++ openvpn/tun.c (revision 2682)
@@ -1221,17 +1221,20 @@ @@ -1221,17 +1221,24 @@
if (tt) if (tt)
{ {
#ifdef CONFIG_FEATURE_IPROUTE #ifdef CONFIG_FEATURE_IPROUTE
@ -11,21 +11,27 @@ Index: openvpn/tun.c
- * Flush IP configuration for the device - * Flush IP configuration for the device
- */ - */
- openvpn_snprintf (command_line, sizeof (command_line), - openvpn_snprintf (command_line, sizeof (command_line),
+ if (tt->type != DEV_TYPE_NULL) - "%s addr flush dev %s",
+ if (tt->type != DEV_TYPE_NULL && tt->did_ifconfig)
+ { + {
+ char command_line[256]; + char command_line[256];
+ /* + struct gc_arena gc = gc_new ();
+ * Flush IP configuration for the device +
+ */
+ openvpn_snprintf (command_line, sizeof (command_line), + openvpn_snprintf (command_line, sizeof (command_line),
"%s addr flush dev %s", + "%s addr del dev %s local %s peer %s",
iproute_path, iproute_path,
tt->actual_name - tt->actual_name
+ tt->actual_name,
+ print_in_addr_t (tt->local, 0, &gc),
+ print_in_addr_t (tt->remote_netmask, 0, &gc)
); );
- msg (M_INFO, "%s", command_line); - msg (M_INFO, "%s", command_line);
- system_check (command_line, NULL, S_FATAL, "Linux ip flush failed"); - system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
+
+ msg (M_INFO, "%s", command_line); + msg (M_INFO, "%s", command_line);
+ system_check (command_line, NULL, S_FATAL, "Linux ip flush failed"); + system_check (command_line, NULL, S_FATAL, "Linux ip addr del failed");
+
+ gc_free (&gc);
+ } + }
#endif #endif
close_tun_generic (tt); close_tun_generic (tt);

@ -4,7 +4,7 @@
Name: openvpn Name: openvpn
Version: 2.1 Version: 2.1
Release: 0.22%{?prerelease:.%{prerelease}}%{?dist} Release: 0.23%{?prerelease:.%{prerelease}}%{?dist}
Summary: A full-featured SSL VPN solution Summary: A full-featured SSL VPN solution
URL: http://openvpn.net/ URL: http://openvpn.net/
#Source0: http://openvpn.net/release/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz #Source0: http://openvpn.net/release/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz
@ -166,6 +166,9 @@ fi
%config %dir %{_sysconfdir}/%{name}/ %config %dir %{_sysconfdir}/%{name}/
%changelog %changelog
* Fri Jan 25 2008 Steven Pritchard <steve@kspei.com> 2.1-0.23.rc6
- Apply update to BETA21-userpriv-fixups.patch from Alon Bar-Lev
* Thu Jan 24 2008 Steven Pritchard <steve@kspei.com> 2.1-0.22.rc6 * Thu Jan 24 2008 Steven Pritchard <steve@kspei.com> 2.1-0.22.rc6
- Update to 2.1_rc6 - Update to 2.1_rc6
- Pass paths to ifconfig, ip, and route to configure - Pass paths to ifconfig, ip, and route to configure

Loading…
Cancel
Save