Spelling fixes from a Fossies run done by Jens.
authorWayne Davison <wayne@opencoder.net>
Thu, 16 Apr 2020 00:42:23 +0000 (17:42 -0700)
committerWayne Davison <wayne@opencoder.net>
Thu, 16 Apr 2020 00:42:23 +0000 (17:42 -0700)
23 files changed:
OLDNEWS
TODO
acls.c
case_N.h
checksum.c
chmod.c
doc/rsync.sgml
fileio.c
lib/compat.c
lib/snprintf.c
lib/sysacls.c
loadparm.c
options.c
params.c
rsync.c
rsync.yo
testsuite/rsync.fns
testsuite/ssh-basic.test
testsuite/trimslash.test
token.c
uidlist.c
util.c
xattrs.c

diff --git a/OLDNEWS b/OLDNEWS
index de195420c8b48d33abcfc7513df85524d4b4604c..084c3d4864895357a1dc9b8df16829fafd109236 100644 (file)
--- a/OLDNEWS
+++ b/OLDNEWS
@@ -1265,7 +1265,7 @@ Changes since 2.6.9:
 
     - Ensure that a temporary file always has owner-write permission while we
       are writing to it.  This avoids problems with some network filesystems
-      when transfering read-only files.
+      when transferring read-only files.
 
     - Any errors output about password-file reading no longer cause an error at
       the end of the run about a partial transfer.
diff --git a/TODO b/TODO
index 9baf463119744856f1cc00849316ab8c631fde1a..03ecfeaf2a9637216c51b1a01e8b82e1fc79dea0 100644 (file)
--- a/TODO
+++ b/TODO
@@ -94,7 +94,7 @@ Handling IPv6 on old machines
   platforms that have a half-working implementation, so redefining
   these functions clashes with system headers, and leaving them out
   breaks.  This affects at least OSF/1, RedHat 5, and Cobalt, which
-  are moderately improtant.
+  are moderately important.
 
   Perhaps the simplest solution would be to have two different files
   implementing the same interface, and choose either the new or the
@@ -236,7 +236,7 @@ Memory accounting
 
   At exit, show how much memory was used for the file list, etc.
 
-  Also we do a wierd exponential-growth allocation in flist.c.  I'm
+  We also do a weird exponential-growth allocation in flist.c.  I'm
   not sure this makes sense with modern mallocs.  At any rate it will
   make us allocate a huge amount of memory for large file lists.
 
diff --git a/acls.c b/acls.c
index 264b920beebdadb8b0673be39750cdecfb77fd22..2bc2e4e1c89e05d129e294e620b01aad9d355e85 100644 (file)
--- a/acls.c
+++ b/acls.c
@@ -48,7 +48,7 @@ extern int preserve_specials;
 /* When we send the access bits over the wire, we shift them 2 bits to the
  * left and use the lower 2 bits as flags (relevant only to a name entry).
  * This makes the protocol more efficient than sending a value that would
- * be likely to have its hightest bits set. */
+ * be likely to have its highest bits set. */
 #define XFLAG_NAME_FOLLOWS 0x0001u
 #define XFLAG_NAME_IS_USER 0x0002u
 
index 68727ab959e70d9d311a90eb268c814199c6e896..97acf6e6db7f00d37c63e57fe994616b7f81edc4 100644 (file)
--- a/case_N.h
+++ b/case_N.h
@@ -17,7 +17,7 @@
  * with this program; if not, visit the http://fsf.org website.
  */
 
-/* This is included multiple times, once for every segement in a switch statement.
+/* This is included multiple times, once for every segment in a switch statement.
  * This produces the next "case N:" statement in sequence. */
 
 #if !defined CASE_N_STATE_0
index a6f1cd9c7caca9c8e28b99c25999743bf0212bae..cd234038521b052fda015c955f8178a5ee43a050 100644 (file)
@@ -100,7 +100,7 @@ int canonical_checksum(int csum_type)
 }
 
 /*
-  a simple 32 bit checksum that can be upadted from either end
+  a simple 32 bit checksum that can be updated from either end
   (inspired by Mark Adler's Adler-32 checksum)
   */
 uint32 get_checksum1(char *buf1, int32 len)
diff --git a/chmod.c b/chmod.c
index 43eb9b9474f6acb21c009038884b29263c8c4a9b..ffb345c9dcfeb27b230dc54aae70dc67ab71ae29 100644 (file)
--- a/chmod.c
+++ b/chmod.c
@@ -44,7 +44,7 @@ struct chmod_mode_struct {
 #define STATE_OCTAL_NUM 3
 
 /* Parse a chmod-style argument, and break it down into one or more AND/OR
- * pairs in a linked list.  We return a pointer to new items on succcess
+ * pairs in a linked list.  We return a pointer to new items on success
  * (appending the items to the specified list), or NULL on error. */
 struct chmod_mode_struct *parse_chmod(const char *modestr,
                                      struct chmod_mode_struct **root_mode_ptr)
index 76a50c2610bcb7280d65594ff97f63bf6550db95..0f900590077c6e0d85c0894dc7e409252328d07b 100644 (file)
       
       <para><option>-P</option>
        Display a progress indicator while files are transferred.  This should
-       normally be ommitted if rsync is not run on a terminal.
+       normally be omitted if rsync is not run on a terminal.
       </para>
     </section>
 
@@ -348,4 +348,4 @@ running rsync giving the network directory.
     
     <para><ulink url="http://www.ccp14.ac.uk/ccp14admin/rsync/"></ulink></para>
   </appendix>
-</book>
\ No newline at end of file
+</book>
index 0f73ba4345584b72c7cb08b97cbdbadb0f94450f..c6e12202e41eb82904ac8293f9421cceed1d33eb 100644 (file)
--- a/fileio.c
+++ b/fileio.c
 #define ENODATA EAGAIN
 #endif
 
-/* We want all reads to be aligned on 1K boundries. */
-#define ALIGN_BOUNDRY 1024
+/* We want all reads to be aligned on 1K boundaries. */
+#define ALIGN_BOUNDARY 1024
 /* How far past the boundary is an offset? */
-#define ALIGNED_OVERSHOOT(oft) ((oft) & (ALIGN_BOUNDRY-1))
+#define ALIGNED_OVERSHOOT(oft) ((oft) & (ALIGN_BOUNDARY-1))
 /* Round up a length to the next boundary */
-#define ALIGNED_LENGTH(len) ((((len) - 1) | (ALIGN_BOUNDRY-1)) + 1)
+#define ALIGNED_LENGTH(len) ((((len) - 1) | (ALIGN_BOUNDARY-1)) + 1)
 
 extern int sparse_files;
 
index a62c87904935e9a202f3001d8661d82ea436b7c9..c1546744c4fb1170913e2932969c4d5e9bfd2c1f 100644 (file)
@@ -79,7 +79,7 @@ static char number_separator;
 
 #ifndef HAVE_STRPBRK
 /**
- * Find the first ocurrence in @p s of any character in @p accept.
+ * Find the first occurrence in @p s of any character in @p accept.
  *
  * Derived from glibc
  **/
index c17868f04f76e3c702817bbfd8e1a68b8a81366f..52fdd11fbdb3a8af4e565dd22348c9adae357d22 100644 (file)
@@ -34,7 +34,7 @@
  *    probably requires libm on most operating systems.  Don't yet
  *    support the exponent (e,E) and sigfig (g,G).  Also, fmtint()
  *    was pretty badly broken, it just wasn't being exercised in ways
- *    which showed it, so that's been fixed.  Also, formated the code
+ *    which showed it, so that's been fixed.  Also, formatted the code
  *    to mutt conventions, and removed dead code left over from the
  *    original.  Also, there is now a builtin-test, just compile with:
  *           gcc -I.. -DTEST_SNPRINTF -o snprintf snprintf.c -lm
@@ -77,7 +77,7 @@
  * Fix incorrect zpadlen handling in fmtfp.
  * Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it.
  * few mods to make it easier to compile the tests.
- * addedd the "Ollie" test to the floating point ones.
+ * added the "Ollie" test to the floating point ones.
  *
  * Martin Pool (mbp@samba.org) April 2003
  *    Remove NO_CONFIG_H so that the test case can be built within a source
index 510030fa819796c4bf156f53c1d154cdffa4cdc3..e81b0e18cd87705e667c57a481f5f34e77cef2c2 100644 (file)
@@ -450,7 +450,7 @@ SMB_ACL_T sys_acl_get_file(const char *path_p, SMB_ACL_TYPE_T type)
         *
         * Note: we assume that the acl() system call returned a
         * well formed ACL which is sorted so that all of the
-        * access ACL entries preceed any default ACL entries
+        * access ACL entries precede any default ACL entries
         */
        for (naccess = 0; naccess < count; naccess++) {
                if (acl_d->acl[naccess].a_type & ACL_DEFAULT)
@@ -932,7 +932,7 @@ SMB_ACL_T sys_acl_get_file(const char *path_p, SMB_ACL_TYPE_T type)
         *
         * Note: we assume that the acl() system call returned a
         * well formed ACL which is sorted so that all of the
-        * access ACL entries preceed any default ACL entries
+        * access ACL entries precede any default ACL entries
         */
        for (naccess = 0; naccess < count; naccess++) {
                if (acl_d->acl[naccess].a_type & ACL_DEFAULT)
@@ -1095,7 +1095,7 @@ struct hpux_acl_types {
  * structures.
  * Inputs:
  *
- * acl_count      - Count of ACLs in the array of ACL strucutres.
+ * acl_count      - Count of ACLs in the array of ACL structures.
  * aclp           - Array of ACL structures.
  * acl_type_count - Pointer to acl_types structure. Should already be
  *                  allocated.
@@ -1256,7 +1256,7 @@ static int hpux_acl_sort(int acl_count, int calclass, struct acl *aclp)
 {
 #if !defined(HAVE_HPUX_ACLSORT)
        /*
-        * The aclsort() system call is availabe on the latest HPUX General
+        * The aclsort() system call is available on the latest HPUX General
         * Patch Bundles. So for HPUX, we developed our version of acl_sort 
         * function. Because, we don't want to update to a new 
         * HPUX GR bundle just for aclsort() call.
@@ -1311,7 +1311,7 @@ or DEF_USER_OBJ or DEF_GROUP_OBJ or DEF_OTHER_OBJ\n"));
         * Sorting crieteria - First sort by ACL type. If there are multiple entries of
         * same ACL type, sort by ACL id.
         *
-        * I am using the trival kind of sorting method here because, performance isn't 
+        * I am using the trivial kind of sorting method here because, performance isn't 
         * really effected by the ACLs feature. More over there aren't going to be more
         * than 17 entries on HPUX. 
         */
index eaa15d7de2cc921f3326cddc8593566544f7f16a..8117fb356849c471eff325b8bf11b27a72e168f0 100644 (file)
@@ -30,7 +30,7 @@
  * 1) add it to the global_vars or local_vars structure definition
  * 2) add it to the parm_table
  * 3) add it to the list of available functions (eg: using FN_GLOBAL_STRING())
- * 4) initialise it in the Defaults static stucture
+ * 4) initialise it in the Defaults static structure
  *
  * Notes:
  *   The configuration file is processed sequentially for speed. For this
@@ -115,7 +115,7 @@ typedef struct {
 /* This structure describes a single section.  Their order must match the
  * initializers below, which you can accomplish by keeping each sub-section
  * sorted.  (e.g. in vim, just visually select each subsection and use !sort.)
- * NOTE: the char* variables MUST all remain at the start of the stuct! */
+ * NOTE: the char* variables MUST all remain at the start of the struct! */
 typedef struct {
        char *auth_users;
        char *charset;
index 4ec8d4c8af1f25cba8482dcc13e1076ac31e1d4c..d567d6495113d2bbdaa639a719185253b11056e9 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2912,7 +2912,7 @@ static char *parse_hostspec(char *str, char **path_start_ptr, int *port_ptr)
        return ret;
 }
 
-/* Look for a HOST specfication of the form "HOST:PATH", "HOST::PATH", or
+/* Look for a HOST specification of the form "HOST:PATH", "HOST::PATH", or
  * "rsync://HOST:PORT/PATH".  If found, *host_ptr will be set to some allocated
  * memory with the HOST.  If a daemon-accessing spec was specified, the value
  * of *port_ptr will contain a non-0 port number, otherwise it will be set to
index 0fbd98634081ebbcd66ab758ed83d3dcc2a95544..910ef233d3df213d0490def12d300df35d3c784c 100644 (file)
--- a/params.c
+++ b/params.c
@@ -1,5 +1,5 @@
 /* This modules is based on the params.c module from Samba, written by Karl Auer
-   and much modifed by Christopher Hertel. */
+   and much modified by Christopher Hertel. */
 
 /*
  * This program is free software; you can redistribute it and/or modify
@@ -59,7 +59,7 @@
  *  beginning with either a semicolon (';') or a pound sign ('#').
  *
  *  All whitespace in section names and parameter names is compressed
- *  to single spaces.  Leading and trailing whitespace is stipped from
+ *  to single spaces.  Leading and trailing whitespace is stripped from
  *  both names and values.
  *
  *  Only the first equals sign in a parameter line is significant.
@@ -153,7 +153,7 @@ static int EatComment( FILE *InFile )
 
 static int Continuation( char *line, int pos )
   /* ------------------------------------------------------------------------ **
-   * Scan backards within a string to discover if the last non-whitespace
+   * Scan backwards within a string to discover if the last non-whitespace
    * character is a line-continuation character ('\\').
    *
    *  Input:  line  - A pointer to a buffer containing the string to be
diff --git a/rsync.c b/rsync.c
index 4659d1231f82ef25ca83e67a9ada60fd7c41153d..9479f24c77b0687f4bf35345c55ee0a0bd3ae853 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -650,7 +650,7 @@ void sig_int(int sig_num)
  * attributes (e.g. permissions, ownership, etc.).  If the robust_rename()
  * call is forced to copy the temp file and partialptr is both non-NULL and
  * not an absolute path, we stage the file into the partial-dir and then
- * rename it into place.  This returns 1 on succcess or 0 on failure. */
+ * rename it into place.  This returns 1 on success or 0 on failure. */
 int finish_transfer(const char *fname, const char *fnametmp,
                    const char *fnamecmp, const char *partialptr,
                    struct file_struct *file, int ok_to_set_time,
index bcb33a79b328b7f0f64ab6511e6b571b67298287..8cc3e0a7da660d6979aa030aadea9eb7c281d09c 100644 (file)
--- a/rsync.yo
+++ b/rsync.yo
@@ -238,7 +238,7 @@ The command specified above uses ssh to run nc (netcat) on a proxyhost,
 which forwards all data to port 873 (the rsync daemon) on the targethost
 (%H).
 
-Note also that if the RSYNC_SHELL environment varibable is set, that
+Note also that if the RSYNC_SHELL environment variable is set, that
 program will be used to run the RSYNC_CONNECT_PROG command instead of
 using the default shell of the code(system()) call.
 
@@ -1348,7 +1348,7 @@ destination machines is higher than the bandwidth to disk (especially when the
 the source and destination are specified as local paths, but only if no
 batch-writing option is in effect.
 
-dit(bf(--checksum-choice=STR)) This option overrides the checksum algoriths.
+dit(bf(--checksum-choice=STR)) This option overrides the checksum algorithms.
 If one algorithm name is specified, it is used for both the transfer checksums
 and (assuming bf(--checksum) is specified) the pre-transfer checksumming. If two
 comma-separated names are supplied, the first name affects the transfer
@@ -1654,7 +1654,7 @@ rsync to have a different idea about what data to expect next over the socket,
 and that will make it fail in a cryptic fashion.
 
 Note that it is best to use a separate bf(--remote-option) for each option you
-want to pass.  This makes your useage compatible with the bf(--protect-args)
+want to pass.  This makes your usage compatible with the bf(--protect-args)
 option.  If that option is off, any spaces in your remote options will be split
 by the remote shell unless you take steps to protect them.
 
index ca05297fb1ab63d1970f6950b2233b81af5315b9..bd5768b96ffb33414a66d984503196cb086c3f98 100644 (file)
@@ -183,7 +183,7 @@ makepath() {
     for p in "${@}"; do
        (echo "        makepath $p"
 
-       # Absolut Unix.
+       # Absolute Unix path.
        if echo $p | grep '^/' >/dev/null
        then
            cd /
index c91505b8d37fe1115616235fa26cd87d6894db26..4bcbdfe950d7eafb7281cbe8e7bafc765a516836 100644 (file)
@@ -19,7 +19,7 @@ if test x"$rsync_enable_ssh_tests" = xyes; then
 fi
 
 if [ "`$SSH -o'BatchMode yes' localhost echo yes`" != "yes" ]; then
-    test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"
+    test_skipped "Skipping SSH tests because ssh connection to localhost not authorised"
 fi
 
 echo "Using remote shell: $SSH"
index d98ff87b965e1a001139922db410ba03129203df..ec551e65da5eb764ad6bbc707f3c18058750e354 100644 (file)
@@ -11,7 +11,7 @@
 
 "$TOOLDIR/trimslash" "/usr/local/bin" "/usr/local/bin/" "/usr/local/bin///" \
        "//a//" "////" \
-        "/Users/Wierd Macintosh Name/// Ooh, translucent plastic/" \
+        "/Users/Weird Macintosh Name/// Ooh, translucent plastic/" \
        > "$scratchdir/slash.out"
 diff $diffopt "$scratchdir/slash.out" - <<EOF
 /usr/local/bin
@@ -19,7 +19,7 @@ diff $diffopt "$scratchdir/slash.out" - <<EOF
 /usr/local/bin
 //a
 /
-/Users/Wierd Macintosh Name/// Ooh, translucent plastic
+/Users/Weird Macintosh Name/// Ooh, translucent plastic
 EOF
 
 # The script would have aborted on error, so getting here means we've won.
diff --git a/token.c b/token.c
index 0a5ed73503d75f63d50dc978210da66434e621f3..6e08dc0ae3bb56fe3fb39eb2f63e18395382e7f9 100644 (file)
--- a/token.c
+++ b/token.c
@@ -639,7 +639,7 @@ void send_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
 }
 
 /*
- * receive a token or buffer from the other end. If the reurn value is >0 then
+ * receive a token or buffer from the other end. If the return value is >0 then
  * it is a data buffer of that length, and *data will point at the data.
  * if the return value is -i then it represents token i-1
  * if the return value is 0 then the end has been reached
index e0c0d74b95331c45b69180bb613ff18f70f05ead..8bfeea27599bab37be18f843c2b8c2e577394173 100644 (file)
--- a/uidlist.c
+++ b/uidlist.c
@@ -252,7 +252,7 @@ static struct idlist *recv_add_id(struct idlist **idlist_ptr, struct idlist *idm
        return node;
 }
 
-/* this function is a definate candidate for a faster algorithm */
+/* this function is a definite candidate for a faster algorithm */
 uid_t match_uid(uid_t uid)
 {
        static struct idlist *last = NULL;
diff --git a/util.c b/util.c
index ec80b43bd1785c6d4a031655e3b9f62b7f2b0df4..c5569f6d54be1e9ce71b3ee1fd4f29610fcd46a3 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1459,7 +1459,7 @@ const char *find_filename_suffix(const char *fn, int fn_len, int *len_ptr)
                        if (!isDigit(s))
                                return suf;
                }
-               /* An all-digit suffix may not be that signficant. */
+               /* An all-digit suffix may not be that significant. */
                s = suf;
        }
 
index b5519186dd31bd1f1383750c264548af6039c061..34ff51cb446ea650e67bc7a9cdeb3616c02e3bda 100644 (file)
--- a/xattrs.c
+++ b/xattrs.c
@@ -719,7 +719,7 @@ int recv_xattr_request(struct file_struct *file, int f_in)
                num += rel_pos;
                if (am_sender) {
                        /* The sender-related num values are only in order on the sender.
-                        * We use that order here to scan foward or backward as needed. */
+                        * We use that order here to scan forward or backward as needed. */
                        if (rel_pos < 0) {
                                while (cnt < (int)lst->count && rxa->num > num) {
                                        rxa--;