David Woodhouse 3 years ago
parent 0f49f866c6
commit 16c2f5115a

4
.gitignore vendored

@ -71,3 +71,7 @@ openconnect-2.25.tar.gz
/openconnect-8.10.tar.gz.asc
/openconnect-8.20.tar.gz
/openconnect-8.20.tar.gz.asc
/openconnect-9.00.tar.gz
/openconnect-9.00.tar.gz.asc
/openconnect-9.01.tar.gz
/openconnect-9.01.tar.gz.asc

@ -1,36 +0,0 @@
From a061a8e9adcda6c3a6ae39a82f87da13fc9ee207 Mon Sep 17 00:00:00 2001
From: Maxim Storchak <m.storchak@gmail.com>
Date: Tue, 5 Apr 2022 13:23:06 +0300
Subject: [PATCH] Set loglevel as soon as it's known
Fixes #401
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
---
main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 166121f2..f382069e 100644
--- a/main.c
+++ b/main.c
@@ -2155,6 +2155,8 @@ int main(int argc, char **argv)
if (vpninfo->dump_http_traffic && verbose < PRG_DEBUG)
verbose = PRG_DEBUG;
+ openconnect_set_loglevel(vpninfo, verbose);
+
if (autoproxy) {
#ifdef LIBPROXY_HDR
vpninfo->proxy_factory = px_proxy_factory_new();
@@ -2291,7 +2293,6 @@ int main(int argc, char **argv)
}
- openconnect_set_loglevel(vpninfo, verbose);
openconnect_set_setup_tun_handler(vpninfo, fully_up_cb);
openconnect_set_stats_handler(vpninfo, print_connection_stats);
--
2.25.1

@ -39,8 +39,8 @@
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Name: openconnect
Version: 8.20
Release: 2%{?relsuffix}%{?dist}
Version: 9.01
Release: 1%{?relsuffix}%{?dist}
Summary: Open client for Cisco AnyConnect VPN, Juniper Network Connect/Pulse, PAN GlobalProtect
License: LGPLv2+
@ -52,8 +52,6 @@ Source1: ftp://ftp.infradead.org/pub/openconnect/openconnect-%{version}%{?gitsuf
Source2: gpgkey-BE07D9FD54809AB2C4B0FF5F63762CDA67E2F359.asc
Source3: macros.gpg
Patch0001: 0001-Set-loglevel-as-soon-as-it-s-known.patch
BuildRequires: make
BuildRequires: pkgconfig(libxml-2.0) pkgconfig(libpcsclite) krb5-devel gnupg2
BuildRequires: autoconf automake libtool gettext pkgconfig(liblz4)
@ -163,6 +161,9 @@ make VERBOSE=1 check
%{_libdir}/pkgconfig/openconnect.pc
%changelog
* Fri Apr 29 2022 David Woodhouse <dwmw2@infradead.org> - 9.01-1
- Update to 9.01 release
* Tue Apr 19 2022 David Woodhouse <dwmw2@infradead.org> - 8.20-2
- Merge upstream patch to fix loglevel (OC #401).

@ -1,2 +1,2 @@
SHA512 (openconnect-8.20.tar.gz) = 76f5e49948391397ea1f7d2fca5798731f4278fee74c3da9b0f0daba6c386ce79ec5d87d40b6d3d99bb2528a038b5a2076df4159bb29c52cba62efb2ca52c8ab
SHA512 (openconnect-8.20.tar.gz.asc) = 82bb28c4ab5b8e07f89a1e2a3860a359ef8266637cee47f0905f70631f0bfe3bb37ac5c98746694a38bcadcbb4a35b7d2c4872f0573adce8b2c950dfe9c6fe1b
SHA512 (openconnect-9.01.tar.gz) = b7428847a90f8ca9d1f1f61653c1f2486f0a07989f3b7435b746c5e901998194f4ee2b4f9569a548a23bba368bb1e9f273674c0759aac9df30208d2a6a303c34
SHA512 (openconnect-9.01.tar.gz.asc) = 246167336adf5b9294b6e43bc9f758cd0dd4e322c5e34c608611574ab5f2f2157c492fc7471f61fe846327c3d965649602a7ef46cd66e53c8228173d6a77b6dc

Loading…
Cancel
Save