From 7bef2ccc6865c2bcc5f975921ce62fcae2eb35de Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 9 May 2023 03:44:05 +0200 Subject: [PATCH] Fix typos found by codespell (#234) --- GPClient/gatewayauthenticatorparams.cpp | 1 - GPClient/gpclient.cpp | 2 +- GPClient/gphelper.cpp | 4 ++-- GPClient/portalauthenticator.cpp | 2 +- GPClient/portalconfigresponse.cpp | 1 - GPClient/vpn_json.cpp | 2 +- GPService/gpservice.cpp | 2 +- cmakew | 4 ++-- debian/changelog | 4 ++-- packaging/obs/globalprotect-openconnect.changes | 6 +++--- 10 files changed, 13 insertions(+), 15 deletions(-) diff --git a/GPClient/gatewayauthenticatorparams.cpp b/GPClient/gatewayauthenticatorparams.cpp index 80fce27..59eb789 100644 --- a/GPClient/gatewayauthenticatorparams.cpp +++ b/GPClient/gatewayauthenticatorparams.cpp @@ -64,4 +64,3 @@ void GatewayAuthenticatorParams::setInputStr(const QString &inputStr) { m_inputStr = inputStr; } - diff --git a/GPClient/gpclient.cpp b/GPClient/gpclient.cpp index a68d7c6..6137eff 100644 --- a/GPClient/gpclient.cpp +++ b/GPClient/gpclient.cpp @@ -339,7 +339,7 @@ void GPClient::onPortalFail(const QString &msg) void GPClient::tryGatewayLogin() { - LOGI << "Try to preform login on the the gateway interface..."; + LOGI << "Try to perform login on the the gateway interface..."; // Treat the portal input as the gateway address GPGateway g; diff --git a/GPClient/gphelper.cpp b/GPClient/gphelper.cpp index f38d2a8..8e45227 100644 --- a/GPClient/gphelper.cpp +++ b/GPClient/gphelper.cpp @@ -172,7 +172,7 @@ bool gpclient::helper::settings::secureGet(const QString &key, QString &value) { if ( job.error() ) { return false; } - + value = pw; return true; -} \ No newline at end of file +} diff --git a/GPClient/portalauthenticator.cpp b/GPClient/portalauthenticator.cpp index b87f4ae..6ba00ce 100644 --- a/GPClient/portalauthenticator.cpp +++ b/GPClient/portalauthenticator.cpp @@ -32,7 +32,7 @@ void PortalAuthenticator::authenticate() { attempts++; - LOGI << QString("(%1/%2) attempts").arg(attempts).arg(MAX_ATTEMPTS) << ", preform portal prelogin at " << preloginUrl; + LOGI << QString("(%1/%2) attempts").arg(attempts).arg(MAX_ATTEMPTS) << ", perform portal prelogin at " << preloginUrl; QNetworkReply *reply = createRequest(preloginUrl); connect(reply, &QNetworkReply::finished, this, &PortalAuthenticator::onPreloginFinished); diff --git a/GPClient/portalconfigresponse.cpp b/GPClient/portalconfigresponse.cpp index 6603c90..45e117d 100644 --- a/GPClient/portalconfigresponse.cpp +++ b/GPClient/portalconfigresponse.cpp @@ -172,4 +172,3 @@ void PortalConfigResponse::setPrelogonUserAuthCookie(const QString cookie) { m_prelogonAuthCookie = cookie; } - diff --git a/GPClient/vpn_json.cpp b/GPClient/vpn_json.cpp index 78a35e5..dcfe213 100644 --- a/GPClient/vpn_json.cpp +++ b/GPClient/vpn_json.cpp @@ -1,5 +1,5 @@ #include "vpn_json.h" -#include +#include #include #include #include diff --git a/GPService/gpservice.cpp b/GPService/gpservice.cpp index fea98b1..acfb646 100644 --- a/GPService/gpservice.cpp +++ b/GPService/gpservice.cpp @@ -136,7 +136,7 @@ void GPService::connect(QString server, QString username, QString passwd) << "--cookie-on-stdin" << server; - log("Start process with arugments: " + args.join(", ")); + log("Start process with arguments: " + args.join(", ")); openconnect->start(bin, args); openconnect->write((passwd + "\n").toUtf8()); diff --git a/cmakew b/cmakew index 1d73db0..2cdacc2 100755 --- a/cmakew +++ b/cmakew @@ -36,7 +36,7 @@ fi cmake_base="./.cmake" cmake_bin="${cmake_base}/cmake-$cmake_version/bin/cmake" -# download cmake if neccessary +# download cmake if necessary if [ ! -f "$cmake_bin" ]; then download_link="" @@ -99,4 +99,4 @@ if [ "$cygwin" = true ]; then fi # run cmake -exec "$cmake_bin" "$@" \ No newline at end of file +exec "$cmake_bin" "$@" diff --git a/debian/changelog b/debian/changelog index 6dea723..8d97c92 100644 --- a/debian/changelog +++ b/debian/changelog @@ -57,7 +57,7 @@ globalprotect-openconnect (1.4.6-1) unstable; urgency=medium * Updated VERSION, Bumped 1.4.5 –> 1.4.6 * feat: display address in gateway menu item - * fix: fix bug of parsing the portal respponse + * fix: fix bug of parsing the portal response -- Kevin Yue Wed, 01 Jun 2022 23:55:50 +0800 @@ -70,7 +70,7 @@ globalprotect-openconnect (1.4.5-1) unstable; urgency=medium * packaging: fix postinst for debian * packaging: add postinst for debian * test: test debian packaging - * ci: fix the foder path + * ci: fix the folder path * chore: apt -> apt-get * ci: verify debian package * Revert "Revert "fix: improve the dbus security"" diff --git a/packaging/obs/globalprotect-openconnect.changes b/packaging/obs/globalprotect-openconnect.changes index ff6f048..e90b111 100644 --- a/packaging/obs/globalprotect-openconnect.changes +++ b/packaging/obs/globalprotect-openconnect.changes @@ -25,7 +25,7 @@ Sun Jan 8 12:58:32 UTC 2023 - k3vinyue@gmail.com - 1.4.9 * Credentials autocompleting (secure version) (#179) * Read all saved Gateways (for selecting in Systray) (#181) * copy install script for debian (#180) - * add es and pt support to shange status when connected to vpn (#162) + * add es and pt support to change status when connected to vpn (#162) * fix: improve the cli support * feat: add --reset option to gpclient @@ -59,7 +59,7 @@ Wed Jun 1 15:55:50 UTC 2022 - k3vinyue@gmail.com - 1.4.6 - Update to 1.4.6 * Updated VERSION, Bumped 1.4.5 –> 1.4.6 * feat: display address in gateway menu item - * fix: fix bug of parsing the portal respponse + * fix: fix bug of parsing the portal response ------------------------------------------------------------------- Sun May 29 13:15:40 UTC 2022 - k3vinyue@gmail.com - 1.4.5 @@ -72,7 +72,7 @@ Sun May 29 13:15:40 UTC 2022 - k3vinyue@gmail.com - 1.4.5 * packaging: fix postinst for debian * packaging: add postinst for debian * test: test debian packaging - * ci: fix the foder path + * ci: fix the folder path * chore: apt -> apt-get * ci: verify debian package * Revert "Revert "fix: improve the dbus security""