From 308c243db5b7425b454a981d4c0eb7bfac374b8b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 25 May 2020 19:44:04 +0000 Subject: [PATCH] all: fix codespell errors Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes https://github.com/curl/curl/pull/5452 --- docs/GOVERNANCE.md | 2 +- docs/KNOWN_BUGS | 8 ++++---- docs/TODO | 2 +- docs/examples/anyauthput.c | 6 +++--- docs/examples/curlx.c | 6 +++--- include/curl/curlver.h | 2 +- lib/ftp.c | 2 +- lib/socks_gssapi.c | 2 +- lib/socks_sspi.c | 2 +- lib/urldata.h | 2 +- lib/vtls/gtls.c | 2 +- lib/vtls/schannel.c | 2 +- packages/vms/build_vms.com | 2 +- scripts/copyright.pl | 4 ++-- scripts/release-notes.pl | 2 +- src/tool_operate.c | 2 +- tests/data/test1238 | 2 +- tests/options-scan.pl | 2 +- tests/runtests.1 | 2 +- tests/secureserver.pl | 2 +- tests/server/sockfilt.c | 4 ++-- tests/sshserver.pl | 2 +- 22 files changed, 31 insertions(+), 31 deletions(-) diff --git a/docs/GOVERNANCE.md b/docs/GOVERNANCE.md index 81747179b..30df155b5 100644 --- a/docs/GOVERNANCE.md +++ b/docs/GOVERNANCE.md @@ -49,7 +49,7 @@ Donations to the project can also come in form of server hosting, providing services and paying for people to work on curl related code etc. Usually, such donations are services paid for directly by the sponsors. -We grade sponsors in a few different levels and if they meet the criterias, +We grade sponsors in a few different levels and if they meet the criteria, they can be mentioned on the Sponsors page on the curl web site. ## Commercial Support diff --git a/docs/KNOWN_BUGS b/docs/KNOWN_BUGS index 96829ab8d..f9637480e 100644 --- a/docs/KNOWN_BUGS +++ b/docs/KNOWN_BUGS @@ -49,7 +49,7 @@ problems may have been fixed or changed somewhat since this was written! 5.1 OS400 port requires deprecated IBM library 5.2 curl-config --libs contains private details 5.3 curl compiled on OSX 10.13 failed to run on OSX 10.10 - 5.4 Build with staticly built dependency + 5.4 Build with statically built dependency 5.5 can't handle Unicode arguments in non-Unicode builds on Windows 5.6 cmake support gaps 5.7 Visual Studio project gaps @@ -364,11 +364,11 @@ problems may have been fixed or changed somewhat since this was written! See https://github.com/curl/curl/issues/2905 -5.4 Build with staticly built dependency +5.4 Build with statically built dependency The build scripts in curl (autotools, cmake and others) are primarily done to work with shared/dynamic third party dependencies. When linking with shared - libraries, the depedency "chain" is handled automatically by the library + libraries, the dependency "chain" is handled automatically by the library loader - on all modern systems. If you instead link with a static library, we need to provide all the @@ -636,7 +636,7 @@ problems may have been fixed or changed somewhat since this was written! 9.2 wolfssh: publickey auth doesn't work When building curl to use the wolfSSH backend for SFTP, the publickey - authentication doesn't work. This is simply funtionality not written for curl + authentication doesn't work. This is simply functionality not written for curl yet, the necessary API for make this work is provided by wolfSSH. See https://github.com/curl/curl/issues/4820 diff --git a/docs/TODO b/docs/TODO index b3ce1cb3f..cdae462af 100644 --- a/docs/TODO +++ b/docs/TODO @@ -230,7 +230,7 @@ On recent macOS versions, the getaddrinfo() function itself has built-in IDN support. By setting the AI_CANONNAME flag, the function will return the - encoded namne in the ai_canonname struct field in the returned information. + encoded name in the ai_canonname struct field in the returned information. This could be used by curl on macOS when built without a separate IDN library and an IDN host name is used in a URL. diff --git a/docs/examples/anyauthput.c b/docs/examples/anyauthput.c index a6ecb3174..7faf93dcd 100644 --- a/docs/examples/anyauthput.c +++ b/docs/examples/anyauthput.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -20,7 +20,7 @@ * ***************************************************************************/ /* - * HTTP PUT upload with authentiction using "any" method. libcurl picks the + * HTTP PUT upload with authentication using "any" method. libcurl picks the * one the server supports/wants. * */ @@ -44,7 +44,7 @@ #endif /* - * This example shows a HTTP PUT operation with authentiction using "any" + * This example shows a HTTP PUT operation with authentication using "any" * type. It PUTs a file given as a command line argument to the URL also given * on the command line. * diff --git a/docs/examples/curlx.c b/docs/examples/curlx.c index e21a9ff9a..8b48c99c8 100644 --- a/docs/examples/curlx.c +++ b/docs/examples/curlx.c @@ -15,7 +15,7 @@ */ /* - * Copyright (c) 2003 - 2019 The OpenEvidence Project. All rights reserved. + * Copyright (c) 2003 - 2020 The OpenEvidence Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -459,7 +459,7 @@ int main(int argc, char **argv) if(!serverurl) { int j = 0; BIO_printf(p.errorbio, "no service URL in user cert " - "cherching in others certificats\n"); + "searching in others certificates\n"); for(j = 0; jproto.ftpc; CURLcode result = CURLE_OK; /* - Here's the excecutive summary on what to do: + Here's the executive summary on what to do: PASV is RFC959, expect: 227 Entering Passive Mode (a1,a2,a3,a4,p1,p2) diff --git a/lib/socks_gssapi.c b/lib/socks_gssapi.c index 38a3056a4..2e36b9940 100644 --- a/lib/socks_gssapi.c +++ b/lib/socks_gssapi.c @@ -328,7 +328,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex, user[gss_send_token.length] = '\0'; gss_release_name(&gss_status, &gss_client_name); gss_release_buffer(&gss_status, &gss_send_token); - infof(data, "SOCKS5 server authencticated user %s with GSS-API.\n",user); + infof(data, "SOCKS5 server authenticated user %s with GSS-API.\n",user); free(user); user = NULL; diff --git a/lib/socks_sspi.c b/lib/socks_sspi.c index 2173072fd..2f1fd36fa 100644 --- a/lib/socks_sspi.c +++ b/lib/socks_sspi.c @@ -327,7 +327,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex, failf(data, "Failed to determine user name."); return CURLE_COULDNT_CONNECT; } - infof(data, "SOCKS5 server authencticated user %s with GSS-API.\n", + infof(data, "SOCKS5 server authenticated user %s with GSS-API.\n", names.sUserName); s_pSecFn->FreeContextBuffer(names.sUserName); diff --git a/lib/urldata.h b/lib/urldata.h index 9c50c261f..38c40f594 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -81,7 +81,7 @@ */ #define RESP_TIMEOUT (120*1000) -/* Max string intput length is a precaution against abuse and to detect junk +/* Max string input length is a precaution against abuse and to detect junk input easier and better. */ #define CURL_MAX_INPUT_LENGTH 8000000 diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 85cd4dc22..0bd6c6528 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -412,7 +412,7 @@ gtls_connect_step1(struct connectdata *conn, if(!gtls_inited) Curl_gtls_init(); - /* Initalize certverifyresult to OK */ + /* Initialize certverifyresult to OK */ *certverifyresult = 0; if(SSL_CONN_CONFIG(version) == CURL_SSLVERSION_SSLv2) { diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index f1499786f..a23179eca 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -43,7 +43,7 @@ #include "sendf.h" #include "connect.h" /* for the connect timeout */ #include "strerror.h" -#include "select.h" /* for the socket readyness */ +#include "select.h" /* for the socket readiness */ #include "inet_pton.h" /* for IP addr SNI check */ #include "curl_multibyte.h" #include "warnless.h" diff --git a/packages/vms/build_vms.com b/packages/vms/build_vms.com index e21e57c47..1b023649f 100644 --- a/packages/vms/build_vms.com +++ b/packages/vms/build_vms.com @@ -133,7 +133,7 @@ $! for non-VAX architectures that triggered link failure. $! Replaced curl_sys_inc with sys_inc. $! 19-Mar-2013, John Malmberg $! symbol tool_main needs to be quoted when parse style is -$! set to exended in versions of VMS greater than 7.3-1. +$! set to extended in versions of VMS greater than 7.3-1. $! Remove curlbuild.h generation as it should be pre-built $! in the curl release or daily tarball. $! 12-Jul-2013, John Malmberg diff --git a/scripts/copyright.pl b/scripts/copyright.pl index 1c6d1b895..8bb4bc9f1 100755 --- a/scripts/copyright.pl +++ b/scripts/copyright.pl @@ -33,8 +33,8 @@ my @whitelist=( '^docs\/cmdline-opts\/[a-z]+(.*)\.d$', # curl.1 pieces '(\/|^)[A-Z0-9_.-]+$', # all uppercase file name, possibly with dot and dash '(\/|^)[A-Z0-9_-]+\.md$', # all uppercase file name with .md extension - '.gitignore', # whereever they are - '.gitattributes', # whereever they are + '.gitignore', # wherever they are + '.gitattributes', # wherever they are '^tests/certs/.*', # generated certs '^tests/stunnel.pem', # generated cert '^tests/valgrind.supp', # valgrind suppressions diff --git a/scripts/release-notes.pl b/scripts/release-notes.pl index 2be0eab8f..d26c045a2 100755 --- a/scripts/release-notes.pl +++ b/scripts/release-notes.pl @@ -65,7 +65,7 @@ for my $l (@releasenotes) { $refused[$1]=1; } elsif($l =~ /^ \[(\d+)\] = (.*)/) { - # listed in a refernce, set bit 1 + # listed in a reference, set bit 1 $refused[$1] |= 2; $refs[$1] = $2; } diff --git a/src/tool_operate.c b/src/tool_operate.c index 6010a952f..92683ae92 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -2418,7 +2418,7 @@ static CURLcode transfer_per_config(struct GlobalConfig *global, "curl-ca-bundle.crt"); #if defined(USE_WIN32_CRYPTO) if(!config->cacert && !config->capath) { - /* user, and environement did not specify any ca file or path + /* user, and environment did not specify any ca file or path and there is no "curl-ca-bundle.crt" file in standard path so the only possible solution is using the windows ca store */ config->native_ca_store = TRUE; diff --git a/tests/data/test1238 b/tests/data/test1238 index 1eacdf44a..88c9a5b3b 100644 --- a/tests/data/test1238 +++ b/tests/data/test1238 @@ -27,7 +27,7 @@ tftp # Always kill the TFTP server to not affect following tests, due # to this test potentially keeping the TFTP server busy waiting # for another 5 seconds after this test has already terminated. -# On some plattforms and CI not enough time passes between this +# On some platforms and CI not enough time passes between this # test and the next tests 1242 and 1243, causing them to fail. tftp diff --git a/tests/options-scan.pl b/tests/options-scan.pl index d79969a29..d49352b40 100644 --- a/tests/options-scan.pl +++ b/tests/options-scan.pl @@ -23,7 +23,7 @@ # # # - Get all options mentioned in the $cmddir. -# - Make sure they're all mentioned inthe $opts document +# - Make sure they're all mentioned in the $opts document # - Make usre that the version in $opts matches the version in the file in # $cmddir # diff --git a/tests/runtests.1 b/tests/runtests.1 index e3725eb79..661616fab 100644 --- a/tests/runtests.1 +++ b/tests/runtests.1 @@ -43,7 +43,7 @@ runs all available tests except number 66. Prefix a test number with a tilde (~) to still run it, but ignore the results. It is also possible to specify tests based on a keyword describing the test(s) -to run, like "FTPS". The keywords are strings used in the indiviual tests. +to run, like "FTPS". The keywords are strings used in the individual tests. You can also specify keywords with a leading exclamation point and the keyword or phrase, like "!HTTP NTLM auth" to run all tests \fBexcept\fP those using diff --git a/tests/secureserver.pl b/tests/secureserver.pl index c525ef7d8..ac279cbba 100755 --- a/tests/secureserver.pl +++ b/tests/secureserver.pl @@ -344,7 +344,7 @@ if($tstunnel_windows) { # Put an "exec" in front of the command so that the child process # keeps this child's process ID by being tied to the spawned shell. exec("exec $cmd") || die "Can't exec() $cmd: $!"; - # exec() will create a new process, but ties the existance of the + # exec() will create a new process, but ties the existence of the # new process to the parent waiting perl.exe and sh.exe processes. # exec() should never return back here to this process. We protect diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 7f0db92b4..6b3758c94 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -75,7 +75,7 @@ * structured and well behaved manner to achieve proper program cleanup and * termination. * - * Even with the above mechanism implemented it is worthwile to note that + * Even with the above mechanism implemented it is worthwhile to note that * other signals might still be received, or that there might be systems on * which it is not possible to trap and ignore some of the above signals. * This implies that for increased portability and reliability the program @@ -687,7 +687,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, /* loop over the handles in the input descriptor sets */ nfd = 0; /* number of handled file descriptors */ - nth = 0; /* number of interal waiting threads */ + nth = 0; /* number of internal waiting threads */ nws = 0; /* number of handled WINSOCK sockets */ for(fd = 0; fd < nfds; fd++) { wsasock = curlx_sitosk(fd); diff --git a/tests/sshserver.pl b/tests/sshserver.pl index 1874b9388..24c98d630 100644 --- a/tests/sshserver.pl +++ b/tests/sshserver.pl @@ -1120,7 +1120,7 @@ if ($sshdid =~ /OpenSSH-Windows/) { # Put an "exec" in front of the command so that the child process # keeps this child's process ID by being tied to the spawned shell. exec("exec $cmd") || die "Can't exec() $cmd: $!"; - # exec() will create a new process, but ties the existance of the + # exec() will create a new process, but ties the existence of the # new process to the parent waiting perl.exe and sh.exe processes. # exec() should never return back here to this process. We protect