]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Spelling fixes (#831)
authorGraham Percival <graham@percival-music.ca>
Sat, 3 Dec 2016 23:00:40 +0000 (15:00 -0800)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 3 Dec 2016 23:00:40 +0000 (00:00 +0100)
Sponsored by: Tarsnap Backup Inc.

20 files changed:
cat/test/main.c
cpio/test/main.c
libarchive/archive_read_disk_entry_from_file.c
libarchive/archive_read_support_filter_uu.c
libarchive/archive_read_support_format_cab.c
libarchive/archive_string.c
libarchive/archive_string.h
libarchive/archive_windows.c
libarchive/archive_write_disk_windows.c
libarchive/archive_write_set_format_7zip.c
libarchive/archive_write_set_format_cpio.c
libarchive/archive_write_set_format_cpio_newc.c
libarchive/archive_write_set_format_gnutar.c
libarchive/archive_write_set_format_mtree.c
libarchive/archive_write_set_format_pax.c
libarchive/archive_write_set_format_ustar.c
libarchive/archive_write_set_format_v7tar.c
libarchive/archive_write_set_format_zip.c
libarchive/test/main.c
libarchive/test/test_archive_cmdline.c

index a57984294fe4d9bd8c3913599d37ac5cfcc5cb54..cdfdd9bd6d75ba0f43445d78bc55c17367846c99 100644 (file)
@@ -520,7 +520,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (0); /* Standard:  return 0 for end-of-string. */
        cnt = utf8_count[ch];
 
-       /* Invalide sequence or there are not plenty bytes. */
+       /* Invalid sequence or there are not plenty bytes. */
        if (n < (size_t)cnt)
                return (-1);
 
@@ -559,7 +559,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (-1);
        }
 
-       /* The code point larger than 0x10FFFF is not leagal
+       /* The code point larger than 0x10FFFF is not legal
         * Unicode values. */
        if (wc > 0x10FFFF)
                return (-1);
index 6e6b5ab435d0124db36e84b64545d918ff85bf72..34282f3f8dc55e5333299a63be6ec6926dd8278b 100644 (file)
@@ -521,7 +521,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (0); /* Standard:  return 0 for end-of-string. */
        cnt = utf8_count[ch];
 
-       /* Invalide sequence or there are not plenty bytes. */
+       /* Invalid sequence or there are not plenty bytes. */
        if (n < (size_t)cnt)
                return (-1);
 
@@ -560,7 +560,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (-1);
        }
 
-       /* The code point larger than 0x10FFFF is not leagal
+       /* The code point larger than 0x10FFFF is not legal
         * Unicode values. */
        if (wc > 0x10FFFF)
                return (-1);
index a537798f88625403bc58ccca76b977c4d70f3af6..f37bb162a0f0b59169f586591194dbddb4d95f9f 100644 (file)
@@ -691,7 +691,7 @@ translate_acl(struct archive_read_disk *a,
 #ifdef ACL_TYPE_NFS4
                if (default_entry_acl_type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) {
                        /*
-                        * acl_get_entry_type_np() falis with non-NFSv4 ACLs
+                        * acl_get_entry_type_np() fails with non-NFSv4 ACLs
                         */
                        if (acl_get_entry_type_np(acl_entry, &acl_type) != 0) {
                                archive_set_error(&a->archive, errno, "Failed "
@@ -1195,7 +1195,7 @@ setup_sparse_fiemap(struct archive_read_disk *a,
                if (r < 0) {
                        /* When something error happens, it is better we
                         * should return ARCHIVE_OK because an earlier
-                        * version(<2.6.28) cannot perfom FS_IOC_FIEMAP. */
+                        * version(<2.6.28) cannot perform FS_IOC_FIEMAP. */
                        goto exit_setup_sparse_fiemap;
                }
                if (fm->fm_mapped_extents == 0) {
@@ -1355,7 +1355,7 @@ setup_sparse(struct archive_read_disk *a,
                        goto exit_setup_sparse;
                }
                if (off_s == 0 && off_e == size)
-                       break;/* This is not spase. */
+                       break;/* This is not sparse. */
                archive_entry_sparse_add_entry(entry, off_s,
                        off_e - off_s);
                off_s = off_e;
index f0fc148701235b7654cf04fe8e7959cc084ea225..1d682af29bc6d9187dcf1975ff0f60c1d64c0c65 100644 (file)
@@ -567,7 +567,7 @@ read_more:
                                    "Insufficient compressed data");
                                return (ARCHIVE_FATAL);
                        }
-                       /* Get length of undecoded bytes of curent line. */
+                       /* Get length of undecoded bytes of current line. */
                        l = UUDECODE(*b++);
                        body--;
                        if (l > body) {
index 099f4a83dcacdeeba72146e03120ea770b008aad..2bdc1e2850e930b7311c6f30a39554140e984142 100644 (file)
@@ -67,7 +67,7 @@ struct lzx_dec {
        /* The length how many bytes we can copy decoded code from
         * the window. */
        int                      copy_len;
-       /* Translation reversal for x86 proccessor CALL byte sequence(E8).
+       /* Translation reversal for x86 processor CALL byte sequence(E8).
         * This is used for LZX only. */
        uint32_t                 translation_size;
        char                     translation;
@@ -1555,7 +1555,7 @@ cab_read_ahead_cfdata_deflate(struct archive_read *a, ssize_t *avail)
        /*
         * Note: I suspect there is a bug in makecab.exe because, in rare
         * case, compressed bytes are still remaining regardless we have
-        * gotten all uncompressed bytes, which size is recoded in CFDATA,
+        * gotten all uncompressed bytes, which size is recorded in CFDATA,
         * as much as we need, and we have to use the garbage so as to
         * correctly compute the sum of CFDATA accordingly.
         */
@@ -1742,7 +1742,7 @@ cab_read_ahead_cfdata_lzx(struct archive_read *a, ssize_t *avail)
        }
 
        /*
-        * Translation reversal of x86 proccessor CALL byte sequence(E8).
+        * Translation reversal of x86 processor CALL byte sequence(E8).
         */
        lzx_translation(&cab->xstrm, cab->uncompressed_buffer,
            cfdata->uncompressed_size,
@@ -2271,7 +2271,7 @@ static int
 lzx_br_fillup(struct lzx_stream *strm, struct lzx_br *br)
 {
 /*
- * x86 proccessor family can read misaligned data without an access error.
+ * x86 processor family can read misaligned data without an access error.
  */
        int n = CACHE_BITS - br->cache_avail;
 
index 33094f476122ed6469f9c7fdd7a5fbde2861639e..727b9e886d3f82a297bd466148e70b93cbc489e1 100644 (file)
@@ -2298,7 +2298,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (0); /* Standard:  return 0 for end-of-string. */
        cnt = utf8_count[ch];
 
-       /* Invalide sequence or there are not plenty bytes. */
+       /* Invalid sequence or there are not plenty bytes. */
        if ((int)n < cnt) {
                cnt = (int)n;
                for (i = 1; i < cnt; i++) {
@@ -2379,7 +2379,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                goto invalid_sequence;
        }
 
-       /* The code point larger than 0x10FFFF is not leagal
+       /* The code point larger than 0x10FFFF is not legal
         * Unicode values. */
        if (wc > UNICODE_MAX)
                goto invalid_sequence;
@@ -2397,7 +2397,7 @@ utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
        int cnt;
 
        cnt = _utf8_to_unicode(pwc, s, n);
-       /* Any of Surrogate pair is not leagal Unicode values. */
+       /* Any of Surrogate pair is not legal Unicode values. */
        if (cnt == 3 && IS_SURROGATE_PAIR_LA(*pwc))
                return (-3);
        return (cnt);
@@ -2458,7 +2458,7 @@ invalid_sequence:
 /*
  * Convert a Unicode code point to a single UTF-8 sequence.
  *
- * NOTE:This function does not check if the Unicode is leagal or not.
+ * NOTE:This function does not check if the Unicode is legal or not.
  * Please you definitely check it before calling this.
  */
 static size_t
@@ -2554,7 +2554,7 @@ utf16_to_unicode(uint32_t *pwc, const char *s, size_t n, int be)
         * Surrogate pair values(0xd800 through 0xdfff) are only
         * used by UTF-16, so, after above culculation, the code
         * must not be surrogate values, and Unicode has no codes
-        * larger than 0x10ffff. Thus, those are not leagal Unicode
+        * larger than 0x10ffff. Thus, those are not legal Unicode
         * values.
         */
        if (IS_SURROGATE_PAIR_LA(uc) || uc > UNICODE_MAX) {
index 23f49165749c01be99e005ebc4c6b026bc848b9d..bac22e6d2945851b0ad9ecf730a18aee91b12337 100644 (file)
@@ -115,13 +115,13 @@ archive_string_conversion_set_opt(struct archive_string_conv *, int);
 
 
 /* Copy one archive_string to another in locale conversion.
- * Return -1 if conversion failes. */
+ * Return -1 if conversion fails. */
 int
 archive_strncpy_l(struct archive_string *, const void *, size_t,
     struct archive_string_conv *);
 
 /* Copy one archive_string to another in locale conversion.
- * Return -1 if conversion failes. */
+ * Return -1 if conversion fails. */
 int
 archive_strncat_l(struct archive_string *, const void *, size_t,
     struct archive_string_conv *);
index d4e93fe78aaadb85397cebecf2f7b3874fb0e714..d53906324f7fe7a969001c3dfcbd384769fe1ed9 100644 (file)
@@ -766,7 +766,7 @@ __la_win_entry_in_posix_pathseparator(struct archive_entry *entry)
                        has_backslash = 1;
        }
        /*
-        * If there is no backslach chars, return the original.
+        * If there is no backslash chars, return the original.
         */
        if (!has_backslash)
                return (entry);
index da76c54db5b60c95e654ebd82e927190d4d262a2..4e7a664a2bc9bda37c30e7094355ef20d87da436 100644 (file)
@@ -192,7 +192,7 @@ struct archive_write_disk {
 
 /*
  * Default mode for dirs created automatically (will be modified by umask).
- * Note that POSIX specifies 0777 for implicity-created dirs, "modified
+ * Note that POSIX specifies 0777 for implicitly-created dirs, "modified
  * by the process' file creation mask."
  */
 #define        DEFAULT_DIR_MODE 0777
@@ -396,7 +396,7 @@ permissive_name_w(struct archive_write_disk *a)
        }
 
        /*
-        * A full-pathname pointig a network drive
+        * A full-pathname pointing to a network drive
         * like "\\<server-name>\<share-name>\file". 
         */
        if (wnp[0] == L'\\' && wnp[1] == L'\\' && wnp[2] != L'\\') {
index fc6ccfe0ba838ffeaa3431f5eb59724335fcc2be..abd521a4641c0b89edfaf86f7c8843dfd626f8f8 100644 (file)
@@ -205,7 +205,7 @@ struct _7zip {
        /*
         * The list of the file entries which has its contents is used to
         * manage struct file objects.
-        * We use 'next' a menber of struct file to chain.
+        * We use 'next' (a member of struct file) to chain.
         */
        struct {
                struct file     *first;
index 352649365d6fb4bdcb3ee8ede80df386b0e30c2d..a4c9d1ed276d4e04b52c828d32444966df0c114b 100644 (file)
@@ -289,7 +289,7 @@ write_header(struct archive_write *a, struct archive_entry *entry)
        sconv = get_sconv(a);
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        entry_main = __la_win_entry_in_posix_pathseparator(entry);
        if (entry_main == NULL) {
index a9bfa808cc1a7ec90192c485718217fd076a69fc..54b5576ca25e17439615adbe534e681405a2fdc0 100644 (file)
@@ -232,7 +232,7 @@ write_header(struct archive_write *a, struct archive_entry *entry)
        sconv = get_sconv(a);
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        entry_main = __la_win_entry_in_posix_pathseparator(entry);
        if (entry_main == NULL) {
index 1d635d2dc3dc8f0bf957b1e4060320d5c1cbdbad..a9c41236ee6811409499d295c3cfa939893afaac 100644 (file)
@@ -119,9 +119,9 @@ static const char template_header[] = {
        '0','0','0','0','0','0', '0','\0',
        /* gid, null termination: 8 bytes */
        '0','0','0','0','0','0', '0','\0',
-       /* size, space termation: 12 bytes */
+       /* size, space termination: 12 bytes */
        '0','0','0','0','0','0','0','0','0','0','0', '\0',
-       /* mtime, space termation: 12 bytes */
+       /* mtime, space termination: 12 bytes */
        '0','0','0','0','0','0','0','0','0','0','0', '\0',
        /* Initial checksum value: 8 spaces */
        ' ',' ',' ',' ',' ',' ',' ',' ',
@@ -368,7 +368,7 @@ archive_write_gnutar_header(struct archive_write *a,
        }
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        entry_main = __la_win_entry_in_posix_pathseparator(entry);
        if (entry_main == NULL) {
index b686303d9a4de8afd3fc0e3c8f5ca3a0b62ea8aa..493d4735661f81408cc151ca8789be06c289fad5 100644 (file)
@@ -1840,9 +1840,9 @@ mtree_entry_setup_filenames(struct archive_write *a, struct mtree_entry *file,
        len = strlen(p);
 
        /*
-        * Add "./" prefiex.
+        * Add "./" prefix.
         * NOTE: If the pathname does not have a path separator, we have
-        * to add "./" to the head of the pathename because mtree reader
+        * to add "./" to the head of the pathname because mtree reader
         * will suppose that it is v1(a.k.a classic) mtree format and
         * change the directory unexpectedly and so it will make a wrong
         * path.
index 6f7fe7839001deef476142456cafda2927d08443..30fd6df1154f14cbfeae86908b3e9dfc18dca4d1 100644 (file)
@@ -709,7 +709,7 @@ archive_write_pax_header(struct archive_write *a,
 
        /* Copy entry so we can modify it as needed. */
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        entry_main = __la_win_entry_in_posix_pathseparator(entry_original);
        if (entry_main == entry_original)
index 797b5334bd4790882522e5695bee400cdab7452d..b475f45f1457034a40f58c21856edab9237e8de5 100644 (file)
@@ -114,9 +114,9 @@ static const char template_header[] = {
        '0','0','0','0','0','0', ' ','\0',
        /* gid, space-null termination: 8 bytes */
        '0','0','0','0','0','0', ' ','\0',
-       /* size, space termation: 12 bytes */
+       /* size, space termination: 12 bytes */
        '0','0','0','0','0','0','0','0','0','0','0', ' ',
-       /* mtime, space termation: 12 bytes */
+       /* mtime, space termination: 12 bytes */
        '0','0','0','0','0','0','0','0','0','0','0', ' ',
        /* Initial checksum value: 8 spaces */
        ' ',' ',' ',' ',' ',' ',' ',' ',
@@ -336,7 +336,7 @@ archive_write_ustar_header(struct archive_write *a, struct archive_entry *entry)
        }
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        entry_main = __la_win_entry_in_posix_pathseparator(entry);
        if (entry_main == NULL) {
index 17efbaf753f835abd768041ad0cb6e65ee545f04..a6ca158df7db13758f64bafb19acea034e59ebe9 100644 (file)
@@ -98,9 +98,9 @@ static const char template_header[] = {
        '0','0','0','0','0','0', ' ','\0',
        /* gid, space-null termination: 8 bytes */
        '0','0','0','0','0','0', ' ','\0',
-       /* size, space termation: 12 bytes */
+       /* size, space termination: 12 bytes */
        '0','0','0','0','0','0','0','0','0','0','0', ' ',
-       /* mtime, space termation: 12 bytes */
+       /* mtime, space termination: 12 bytes */
        '0','0','0','0','0','0','0','0','0','0','0', ' ',
        /* Initial checksum value: 8 spaces */
        ' ',' ',' ',' ',' ',' ',' ',' ',
@@ -314,7 +314,7 @@ archive_write_v7tar_header(struct archive_write *a, struct archive_entry *entry)
        }
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        entry_main = __la_win_entry_in_posix_pathseparator(entry);
        if (entry_main == NULL) {
index e4edb818819a18948f25513e25df49a3f9894980..810b8d7ffd70f18f27e4e177cb27cec3faddccf7 100644 (file)
@@ -592,7 +592,7 @@ archive_write_zip_header(struct archive_write *a, struct archive_entry *entry)
 
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure the path separators in pahtname, hardlink and symlink
+       /* Make sure the path separators in pathname, hardlink and symlink
         * are all slash '/', not the Windows path separator '\'. */
        zip->entry = __la_win_entry_in_posix_pathseparator(entry);
        if (zip->entry == entry)
index 32a1f78b9cf2ef53d63ffb77afead78fcad23ae2..3553be6a9926ec44e49da15c99b836630664c123 100644 (file)
@@ -519,7 +519,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (0); /* Standard:  return 0 for end-of-string. */
        cnt = utf8_count[ch];
 
-       /* Invalide sequence or there are not plenty bytes. */
+       /* Invalid sequence or there are not plenty bytes. */
        if (n < (size_t)cnt)
                return (-1);
 
@@ -558,7 +558,7 @@ _utf8_to_unicode(uint32_t *pwc, const char *s, size_t n)
                return (-1);
        }
 
-       /* The code point larger than 0x10FFFF is not leagal
+       /* The code point larger than 0x10FFFF is not legal
         * Unicode values. */
        if (wc > 0x10FFFF)
                return (-1);
index a411821356c917ecd8b753d0796009044d981266..a8236105af0b36da2ab9a4db2da2c48db69a0a37 100644 (file)
@@ -66,7 +66,7 @@ DEFINE_TEST(test_archive_cmdline)
        assertEqualString("gzip", cl->argv[0]);
        assertEqualInt(ARCHIVE_OK, __archive_cmdline_free(cl));
 
-       /* A command line includes space characer. */
+       /* A command line includes space character. */
        assert((cl = __archive_cmdline_allocate()) != NULL);
        if (cl == NULL)
                return;
@@ -78,7 +78,7 @@ DEFINE_TEST(test_archive_cmdline)
        assertEqualString("gzip ", cl->argv[0]);
        assertEqualInt(ARCHIVE_OK, __archive_cmdline_free(cl));
 
-       /* A command line includes space characer: pattern 2.*/
+       /* A command line includes space character: pattern 2.*/
        assert((cl = __archive_cmdline_allocate()) != NULL);
        if (cl == NULL)
                return;
@@ -90,7 +90,7 @@ DEFINE_TEST(test_archive_cmdline)
        assertEqualString("gzip x", cl->argv[0]);
        assertEqualInt(ARCHIVE_OK, __archive_cmdline_free(cl));
 
-       /* A command line includes space characer: pattern 3.*/
+       /* A command line includes space character: pattern 3.*/
        assert((cl = __archive_cmdline_allocate()) != NULL);
        if (cl == NULL)
                return;
@@ -103,7 +103,7 @@ DEFINE_TEST(test_archive_cmdline)
        assertEqualString("gzip x s ", cl->argv[0]);
        assertEqualInt(ARCHIVE_OK, __archive_cmdline_free(cl));
 
-       /* A command line includes space characer: pattern 4.*/
+       /* A command line includes space character: pattern 4.*/
        assert((cl = __archive_cmdline_allocate()) != NULL);
        if (cl == NULL)
                return;