]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Merge Ulrich Spoerlein's spelling fixes from trunk.
authorTim Kientzle <kientzle@gmail.com>
Sun, 8 Jan 2012 00:47:52 +0000 (19:47 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 8 Jan 2012 00:47:52 +0000 (19:47 -0500)
SVN-Revision: 4095

31 files changed:
contrib/libarchive.1aix53.spec
contrib/libarchive.spec
contrib/psota-benchmark/results.txt
contrib/psota-benchmark/tcp.sh
cpio/test/main.c
cpio/test/test_0.c
cpio/test/test_option_c.c
libarchive/archive_entry_acl.3
libarchive/archive_entry_stat.c
libarchive/archive_rb.c
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_lha.c
libarchive/archive_read_support_format_mtree.c
libarchive/archive_read_support_format_rar.c
libarchive/archive_read_support_format_tar.c
libarchive/archive_string.c
libarchive/archive_windows.c
libarchive/archive_write_disk_posix.c
libarchive/archive_write_disk_windows.c
libarchive/archive_write_set_format_gnutar.c
libarchive/archive_write_set_format_iso9660.c
libarchive/archive_write_set_format_pax.c
libarchive/filter_fork_windows.c
libarchive/test/main.c
libarchive/test/test_read_format_cab.c
libarchive/test/test_write_disk_hardlink.c
libarchive/test/test_zip_filename_encoding.c
libarchive_fe/pathmatch.c
tar/bsdtar.c
tar/test/main.c
tar/test/test_0.c

index 5ea3a4a56d312582fd8fbe190fdf540cf6283594..fe81d147e03e01774f920e8a060274f2e23b60f5 100644 (file)
@@ -140,7 +140,7 @@ Revision 1.6  2006/11/15 10:41:28  qboosh
 Revision 1.5  2006/11/08 22:22:25  twittner
 - up to 1.3.1
 - added BR: e2fsprogs-devel
-- added -CVE-2006-5680.patch agains entering in infinite
+- added -CVE-2006-5680.patch against entering an infinite
 loop in corrupt archives
 - added bsdtar package (bsdtar is included now in libarchive
 sources)
index 8f116ac00091b26c45d946121e41e98b453d4706..b5b658a874b1cbbb82cb26fa7d559b37ee822c04 100644 (file)
@@ -127,7 +127,7 @@ Revision 1.6  2006/11/15 10:41:28  qboosh
 Revision 1.5  2006/11/08 22:22:25  twittner
 - up to 1.3.1
 - added BR: e2fsprogs-devel
-- added -CVE-2006-5680.patch agains entering in infinite
+- added -CVE-2006-5680.patch against entering an infinite
 loop in corrupt archives
 - added bsdtar package (bsdtar is included now in libarchive
 sources)
index f557a62ef20d0e4176cb20c755927d2b84e2f708..2d364c5558ddb3c00a18a46a3456b3b62f3a3877 100644 (file)
@@ -1,4 +1,4 @@
-ODP: [Bug-tar] GNU tar, star and BSD tar speed comparision +new script
+ODP: [Bug-tar] GNU tar, star and BSD tar speed comparison +new script
 
 Jan Psota
 Thu, 25 Oct 2007 06:51:13 -0700
index 809719006a6b291ebb75b5add62d356b6beca192..3f630732be7cfbb12bd2e16f77cd9034ae8bfc11 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/sh
-# tar comparision program
+# tar comparison program
 # 2007-10-25 Jan Psota
 
 n=3                                     # number of repetitions
-TAR="bsdtar gnutar star"                # TApeArchivers to compare
+TAR="bsdtar gnutar star"                # Tape archivers to compare
 OPT=("" "--seek" "-no-fsync")
 pax="--format=pax"                      # comment out for defaults
 OPN=(create list extract compare)       # operations
@@ -16,9 +16,9 @@ test $# -ge 2 || {
 [where_to_extract_it]
 
 TCP, version $version
-TCP stands for Tar Comparision Program here.
+TCP stands for Tar Comparison Program here.
 It currently compares: BSD tar (bsdtar), GNU tar (gnutar) and star in archive
-creation, listing, extraction and archive-to-extracted comparision.
+creation, listing, extraction and archive-to-extracted comparison.
 Tcp prints out best time of n=$n repetitions.
 
 Tcp creates temporary archive named tcp.tar with $pax and some native
index 17d53cfb49499a418972df8b6e273be2c74472ba..d9e6c302bbb77594e584e13cce384cc96c6eb0d1 100644 (file)
@@ -270,7 +270,7 @@ failure(const char *fmt, ...)
  * pass __FILE__, __LINE__ directly into the function instead of using
  * this hook.  I suspect this machinery is used so rarely that we
  * would be better off just removing it entirely.  That would simplify
- * the code here noticably.
+ * the code here noticeably.
  */
 static const char *skipping_filename;
 static int skipping_line;
index e91645353d940e63529643fff77a7a6856a1bb9f..fa52def7eaf331c04cdcf95b5ebc277bae2028e8 100644 (file)
@@ -56,7 +56,7 @@ DEFINE_TEST(test_0)
        }
 
        /*
-        * Try to succesfully run the program; this requires that
+        * Try to successfully run the program; this requires that
         * we know some option that will succeed.
         */
        if (0 == systemf("%s --version >" DEV_NULL, testprog)) {
index 617b93c2910f0e09d8ed55981c3497fbbda3f794..a634be10ba7c6ed57ae99eb131591049bc2e9be6 100644 (file)
@@ -191,7 +191,7 @@ DEFINE_TEST(test_option_c)
        /* Group members bits and others bits do not work. */
        assertEqualMem(e + 18, "040777", 6); /* Mode */
 #else
-       /* Accept 042775 to accomodate systems where sgid bit propagates. */
+       /* Accept 042775 to accommodate systems where sgid bit propagates. */
        if (memcmp(e + 18, "042775", 6) != 0)
                assertEqualMem(e + 18, "040775", 6); /* Mode */
 #endif
index 93906e7985e131ec13acd7d7cb34d3f33c5ea544..8c4f0cd64ef1e73a39301c024d5509854e67b921 100644 (file)
@@ -132,7 +132,7 @@ All files have an access ACL
 This specifies the permissions required for access to the file itself.
 Directories have an additional ACL
 .Pq Dv ARCHIVE_ENTRY_ACL_TYPE_DEFAULT ,
-which controlls the initial access ACL for newly created directory entries.
+which controls the initial access ACL for newly created directory entries.
 .Pp
 .Fn archive_entry_acl_add_entry
 and
index d5ed1cb131f4239ea38707b7f7b4cf344e8bdb1a..65ff1cf92d077a8706384aaf2ed761f29f1f0990 100644 (file)
@@ -110,7 +110,7 @@ archive_entry_stat(struct archive_entry *entry)
        /*
         * TODO: On Linux, store 32 or 64 here depending on whether
         * the cached stat structure is a stat32 or a stat64.  This
-        * will allow us to support both variants interchangably.
+        * will allow us to support both variants interchangeably.
         */
        entry->stat_valid = 1;
 
index f8035d9dfe1d73bfed6a53944ab289c0702ea216..fa307be25064c2ef40349ed9433004f8c46aefee 100644 (file)
@@ -377,13 +377,13 @@ __archive_rb_tree_swap_prune_and_rebalance(struct archive_rb_tree *rbt,
 
        if (standin_father == self) {
                /*
-                * As a child of self, any childen would be opposite of
+                * As a child of self, any children would be opposite of
                 * our parent.
                 */
                standin_son = standin->rb_nodes[standin_which];
        } else {
                /*
-                * Since we aren't a child of self, any childen would be
+                * Since we aren't a child of self, any children would be
                 * on the same side as our parent.
                 */
                standin_son = standin->rb_nodes[standin_other];
@@ -410,7 +410,7 @@ __archive_rb_tree_swap_prune_and_rebalance(struct archive_rb_tree *rbt,
                /*
                 * If we are about to delete the standin's father, then when
                 * we call rebalance, we need to use ourselves as our father.
-                * Otherwise remember our original father.  Also, sincef we are
+                * Otherwise remember our original father.  Also, since we are
                 * our standin's father we only need to reparent the standin's
                 * brother.
                 *
@@ -466,7 +466,7 @@ __archive_rb_tree_swap_prune_and_rebalance(struct archive_rb_tree *rbt,
  *     __archive_rb_tree_node_swap(rbt, self, which);
  *     __archive_rb_tree_prune_node(rbt, self, F);
  *
- * But it's more efficient to just evalate and recolor the child.
+ * But it's more efficient to just evaluate and recolor the child.
  */
 static void
 __archive_rb_tree_prune_blackred_branch(
@@ -505,7 +505,7 @@ __archive_rb_tree_remove_node(struct archive_rb_tree *rbt,
         * red-black tree.  So if we must remove a node, attempt to rearrange
         * the tree so we can remove a red node.
         *
-        * The simpliest case is a childless red node or a childless root node:
+        * The simplest case is a childless red node or a childless root node:
         *
         * |    T  -->    T  |    or    |  R  -->  *  |
         * |  s    -->  *    |
@@ -517,7 +517,7 @@ __archive_rb_tree_remove_node(struct archive_rb_tree *rbt,
        }
        if (!RB_TWOCHILDREN_P(self)) {
                /*
-                * The next simpliest case is the node we are deleting is
+                * The next simplest case is the node we are deleting is
                 * black and has one red child.
                 *
                 * |      T  -->      T  -->      T  |
index 330ba6ace8fd79af0ff5a8bc766ae0e4e887f107..7fa4cda37fb82c0e376559aeb95cffbdb71948a9 100644 (file)
@@ -318,7 +318,7 @@ struct _7zip {
        uint32_t                 bcj2_code;
        uint64_t                 bcj2_outPos;
 
-       /* Filename character-set convertion data. */
+       /* Filename character-set conversion data. */
        struct archive_string_conv *sconv;
 
        char                     format_name[64];
index 50256b161005b9adefcac4bcaed914454dc2d814..f3c7d282b4974e592e04186f32e77930bf27c424 100644 (file)
@@ -696,7 +696,7 @@ archive_read_format_lha_read_header(struct archive_read *a,
                archive_entry_set_symlink(entry, NULL);
        archive_string_free(&linkname);
        /*
-        * When a header level is 0, there is a possibilty that
+        * When a header level is 0, there is a possibility that
         * a pathname and a symlink has '\' character, a directory
         * separator in DOS/Windows. So we should convert it to '/'.
         */
index 6ac7db8071e240ec5e1b20631b6e9bfa31e60389..3ba4be008e01bd35948684d9c578ab56bc2acbab 100644 (file)
@@ -407,7 +407,7 @@ bid_keyword(const char *p,  ssize_t len)
                if (l > 0)
                        return (l);
        }
-       return (0);/* Unkown key */
+       return (0);/* Unknown key */
 }
 
 /*
index a5f204176d24004db96a2d1e1bfe28aa5821c24e..c70e0e5b3374312e97903feecb93892039100a9f 100644 (file)
 #define MAX_SYMBOLS       20
 
 /*
- * Considering L1,L2 cache miss and a calling of write sytem-call,
+ * Considering L1,L2 cache miss and a calling of write system-call,
  * the best size of the output buffer(uncompressed buffer) is 128K.
  * If the structure of extracting process is changed, this value
  * might be researched again.
index 89a1d4f2a53226f1cae51f922c500bb0796e3891..42412880f29d59f4e36f624ebd52789c0d54b7ce 100644 (file)
@@ -2321,7 +2321,7 @@ gnu_sparse_10_read(struct archive_read *a, struct tar *tar, size_t *unconsumed)
 
 /*
  * Solaris pax extension for a sparse file. This is recorded with the
- * data and hole pairs. The way recording sparse infomation by Solaris'
+ * data and hole pairs. The way recording sparse information by Solaris'
  * pax simply indicates where data and sparse are, so the stored contents
  * consist of both data and hole.
  */
index 4dec82d6223c8fe7c8ab3089717a57c103ab0f33..550d7e7e6b6243721e42c79b58a2534bbc892d8c 100644 (file)
@@ -3250,8 +3250,8 @@ archive_string_normalize_C(struct archive_string *as, const void *_p,
 
                                /*
                                 * Remove ucx[i] by shifting
-                                * follwoing code points.
-                                */ 
+                                * following code points.
+                                */
                                for (j = i; j+1 < ucx_size; j++) {
                                        ucx[j] = ucx[j+1];
                                        ccx[j] = ccx[j+1];
@@ -3424,7 +3424,7 @@ archive_string_normalize_D(struct archive_string *as, const void *_p,
 
 return_no_changed_data:
        /*
-        * Something conversion error happend, so we return a no normalized
+        * Something conversion error happened, so we return a no normalized
         * string with an error.
         */
        (void)archive_string_append_unicode(as, _p, len, sc);
@@ -3434,8 +3434,8 @@ return_no_changed_data:
 #endif /* __APPLE__ */
 
 /*
- * libarchive 2.x made incorrect UTF-8 strings in the wrong assumuption
- * that WCS is Unicode. it is true for servel platforms but some are false.
+ * libarchive 2.x made incorrect UTF-8 strings in the wrong assumption
+ * that WCS is Unicode. It is true for several platforms but some are false.
  * And then people who did not use UTF-8 locale on the non Unicode WCS
  * platform and made a tar file with libarchive(mostly bsdtar) 2.x. Those
  * now cannot get right filename from libarchive 3.x and later since we
index 0bb2a80949074dd4abdd11ea8b1265a28c3c5db2..4d37a9c25c4399be2f9884d01d31d0804a11732c 100644 (file)
@@ -136,7 +136,7 @@ __la_win_permissive_name_w(const wchar_t *wname)
        if (l == 0)
                return (NULL);
        /* NOTE: GetFullPathNameW has a bug that if the length of the file
-        * name is just one that return imcomplete buffer size. Thus, we 
+        * name is just 1 then it returns incomplete buffer size. Thus, we
         * have to add three to the size to allocate a sufficient buffer
         * size for the full-pathname of the file name. */
        l += 3;
index 99afab2f635c814fe77ef581de6f8125f72a70e0..9937930dc90113827bef0f58e14e1e4363015f19 100644 (file)
@@ -1223,7 +1223,7 @@ create_filesystem_object(struct archive_write_disk *a)
                 *
                 * If the hardlink was successfully created and
                 * the archive doesn't have carry data for it,
-                * consider it to be non-authoritive for meta data.
+                * consider it to be non-authoritative for meta data.
                 * This is consistent with GNU tar and BSD pax.
                 * If the hardlink does carry data, let the last
                 * archive entry decide ownership.
index 2dc2d92e88d04ddc982e04944091c1105c4cf064..910431564af062b151f1a867f4c49868652e1f5f 100644 (file)
@@ -610,7 +610,7 @@ lazy_stat(struct archive_write_disk *a)
 
        /*
         * XXX At this point, symlinks should not be hit, otherwise
-        * XXX a race occured.  Do we want to check explicitly for that?
+        * XXX a race occurred.  Do we want to check explicitly for that?
         */
        if (file_information(a, a->name, &a->st, NULL, 1) == 0) {
                a->pst = &a->st;
@@ -1520,7 +1520,7 @@ create_filesystem_object(struct archive_write_disk *a)
                 *
                 * If the hardlink was successfully created and
                 * the archive doesn't have carry data for it,
-                * consider it to be non-authoritive for meta data.
+                * consider it to be non-authoritative for meta data.
                 * This is consistent with GNU tar and BSD pax.
                 * If the hardlink does carry data, let the last
                 * archive entry decide ownership.
index e091ed23fd664de76692c637bc0ea47eaba94824..dea46b05d4ac557aab408fdb7597a76c2f4dcbac 100644 (file)
@@ -400,7 +400,7 @@ archive_write_gnutar_header(struct archive_write *a,
                size_t todo = gnutar->linkname_length;
                struct archive_entry *temp = archive_entry_new2(&a->archive);
 
-               /* Uname/gname here don't really matter since noone reads them;
+               /* Uname/gname here don't really matter since no one reads them;
                 * these are the values that GNU tar happens to use on FreeBSD. */
                archive_entry_set_uname(temp, "root");
                archive_entry_set_gname(temp, "wheel");
@@ -429,7 +429,7 @@ archive_write_gnutar_header(struct archive_write *a,
                size_t todo = gnutar->pathname_length;
                struct archive_entry *temp = archive_entry_new2(&a->archive);
 
-               /* Uname/gname here don't really matter since noone reads them;
+               /* Uname/gname here don't really matter since no one reads them;
                 * these are the values that GNU tar happens to use on FreeBSD. */
                archive_entry_set_uname(temp, "root");
                archive_entry_set_gname(temp, "wheel");
index 4b01a643178c98786be4c59fb73a1346ad146e7b..af2070ad9e727607dfa3dc684c9ab940fb3438bd 100644 (file)
@@ -1852,7 +1852,7 @@ iso9660_close(struct archive_write *a)
        iso9660 = a->format_data;
 
        /*
-        * Write remaining data out to the temprary file.
+        * Write remaining data out to the temporary file.
         */
        if (wb_remaining(a) > 0) {
                ret = wb_write_out(a);
@@ -1881,7 +1881,7 @@ iso9660_close(struct archive_write *a)
                ret = zisofs_rewind_boot_file(a);
                if (ret < 0)
                        return (ret);
-               /* Write remaining data out to the temprary file. */
+               /* Write remaining data out to the temporary file. */
                if (wb_remaining(a) > 0) {
                        ret = wb_write_out(a);
                        if (ret < 0)
@@ -6280,7 +6280,7 @@ isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent,
                }
 
                /* Make an offset of the number which is used to be set
-                * hexadecimal number to avoid duplicate identififier. */
+                * hexadecimal number to avoid duplicate identifier. */
                if ((int)l == ffmax)
                        noff = ext_off - 6;
                else if ((int)l == ffmax-2)
@@ -6300,7 +6300,7 @@ isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent,
 }
 
 /*
- * This comparing rule is acording to ISO9660 Standard 9.3
+ * This comparing rule is according to ISO9660 Standard 9.3
  */
 static int
 isoent_cmp_iso9660_identifier(const struct isoent *p1, const struct isoent *p2)
index 8affb2c15cfc970698398daa8042f225e3e39b6b..3d6b6aa182ad3e22530de379dfa4d8fd7e55348a 100644 (file)
@@ -576,7 +576,7 @@ archive_write_pax_header(struct archive_write *a,
 
        /*
         * If Mac OS metadata blob is here, recurse to write that
-        * as a separate entry.  This is realy a pretty poor design:
+        * as a separate entry.  This is really a pretty poor design:
         * In particular, it doubles the overhead for long filenames.
         * TODO: Help Apple folks design something better and figure
         * out how to transition from this legacy format.
@@ -1439,7 +1439,7 @@ build_ustar_entry_name(char *dest, const char *src, size_t src_length,
  *
  * Joerg Schilling has argued that this is unnecessary because, in
  * practice, if the pax extended attributes get extracted as regular
- * files, noone is going to bother reading those attributes to
+ * files, no one is going to bother reading those attributes to
  * manually restore them.  Based on this, 'star' uses
  * /tmp/PaxHeader/'basename' as the ustar header name.  This is a
  * tempting argument, in part because it's simpler than the SUSv3
index 272e56c6b4ba5bee3355776bc88386cd804e513f..8d8beb01eb2584769ecdf81097eac3e5858f05bf 100644 (file)
@@ -109,8 +109,8 @@ fail:
 void
 __archive_check_child(int in, int out)
 {
-       (void)in; /* UNSED */
-       (void)out; /* UNSED */
+       (void)in; /* UNUSED */
+       (void)out; /* UNUSED */
        Sleep(100);
 }
 
index d12078f8bdfd45f98e9784800655fcb76855bec1..3d7ead581ff3e2ed063f42ac08e852ec7c75eb13 100644 (file)
@@ -268,7 +268,7 @@ failure(const char *fmt, ...)
  * pass __FILE__, __LINE__ directly into the function instead of using
  * this hook.  I suspect this machinery is used so rarely that we
  * would be better off just removing it entirely.  That would simplify
- * the code here noticably.
+ * the code here noticeably.
  */
 static const char *skipping_filename;
 static int skipping_line;
index 0a94865d6a494d4beb617b66d08d9b5738852fcf..4e8607ec8f70fc8f1d22c26df6c8500351913a2b 100644 (file)
@@ -42,7 +42,7 @@ And following works are:
 5. Then you will see that there is a cabinet file, test.cab
 6. Move test.cab to posix platform
 7. Extract test.cab with this version of bsdtar
-8. Excecute the following command to make uuencoded files.
+8. Execute the following command to make uuencoded files.
  uuencode test_read_format_cab_1.cab test_read_format_cab_1.cab > test_read_format_cab_1.cab.uu
  uuencode test_read_format_cab_2.cab test_read_format_cab_2.cab > test_read_format_cab_2.cab.uu
  uuencode test_read_format_cab_3.cab test_read_format_cab_3.cab > test_read_format_cab_3.cab.uu
index c52dc67b245405febc22ab0b94f8bfa65cd55c40..f80821c7e3676a5c1b7b5211e34b692f35263502 100644 (file)
@@ -37,8 +37,8 @@ __FBSDID("$FreeBSD: head/lib/libarchive/test/test_write_disk_hardlink.c 201247 2
 /*
  * Exercise hardlink recreation.
  *
- * File permissions are chosen so that the authoritive entry
- * has the correct permission and the non-authoritive versions
+ * File permissions are chosen so that the authoritative entry
+ * has the correct permission and the non-authoritative versions
  * are just writeable files.
  */
 DEFINE_TEST(test_write_disk_hardlink)
@@ -181,7 +181,7 @@ DEFINE_TEST(test_write_disk_hardlink)
        /* Test #1 */
        /* If the hardlink was successfully created and the archive
         * doesn't carry data for it, we consider it to be
-        * non-authoritive for meta data as well.  This is consistent
+        * non-authoritative for meta data as well.  This is consistent
         * with GNU tar and BSD pax.  */
        assertIsReg("link1a", 0755 & ~UMASK);
        assertFileSize("link1a", sizeof(data));
index d2a81541879db101ccf3439ace7917d05f090e3d..7ee17196f59d79ffe9ac8e5f046353d7aa011651 100644 (file)
@@ -64,7 +64,7 @@ test_zip_filename_encoding_UTF8(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0x08,
+       /* A bit 11 of general purpose flag should be 0x08,
         * which indicates the filename charset is UTF-8. */
        assertEqualInt(0x08, buff[7]);
        assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
@@ -87,13 +87,13 @@ test_zip_filename_encoding_UTF8(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0x08,
+       /* A bit 11 of general purpose flag should be 0x08,
         * which indicates the filename charset is UTF-8. */
        assertEqualInt(0x08, buff[7]);
        assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6);
 
        /*
-        * Verify that A bit 11 of general purpos flag is not set
+        * Verify that A bit 11 of general purpose flag is not set
         * when ASCII filenames are stored.
         */
        a = archive_write_new();
@@ -110,8 +110,8 @@ test_zip_filename_encoding_UTF8(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        assertEqualMem(buff + 30, "abcABC", 6);
 }
@@ -152,7 +152,7 @@ test_zip_filename_encoding_KOI8R(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0x08,
+       /* A bit 11 of general purpose flag should be 0x08,
         * which indicates the filename charset is UTF-8. */
        assertEqualInt(0x08, buff[7]);
        /* Above three characters in KOI8-R should translate to the following
@@ -176,15 +176,15 @@ test_zip_filename_encoding_KOI8R(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        /* Above three characters in KOI8-R should not translate to
         * any character-set. */
        assertEqualMem(buff + 30, "\xD0\xD2\xC9", 3);
 
        /*
-        * Verify that A bit 11 of general purpos flag is not set
+        * Verify that A bit 11 of general purpose flag is not set
         * when ASCII filenames are stored even if hdrcharset=UTF-8
         * is specified.
         */
@@ -208,8 +208,8 @@ test_zip_filename_encoding_KOI8R(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        assertEqualMem(buff + 30, "abcABC", 6);
 }
@@ -248,8 +248,8 @@ test_zip_filename_encoding_ru_RU_CP1251(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        /* Above three characters in CP1251 should not translate into
         * any other character-set. */
@@ -298,7 +298,7 @@ test_zip_filename_encoding_Russian_Russia(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0x08,
+       /* A bit 11 of general purpose flag should be 0x08,
         * which indicates the filename charset is UTF-8. */
        assertEqualInt(0x08, buff[7]);
        /* Above three characters in CP1251 should translate to the following
@@ -323,8 +323,8 @@ test_zip_filename_encoding_Russian_Russia(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        /* Above three characters in CP1251 should translate to the following
         * three characters in CP866. */
@@ -368,7 +368,7 @@ test_zip_filename_encoding_EUCJP(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0x08,
+       /* A bit 11 of general purpose flag should be 0x08,
         * which indicates the filename charset is UTF-8. */
        assertEqualInt(0x08, buff[7]);
        /* Check UTF-8 version. */
@@ -392,15 +392,15 @@ test_zip_filename_encoding_EUCJP(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        /* Above three characters in EUC-JP should not translate to
         * any character-set. */
        assertEqualMem(buff + 30, "\xC9\xBD.txt", 6);
 
        /*
-        * Verify that A bit 11 of general purpos flag is not set
+        * Verify that A bit 11 of general purpose flag is not set
         * when ASCII filenames are stored even if hdrcharset=UTF-8
         * is specified.
         */
@@ -425,8 +425,8 @@ test_zip_filename_encoding_EUCJP(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        assertEqualMem(buff + 30, "abcABC", 6);
 }
@@ -469,7 +469,7 @@ test_zip_filename_encoding_CP932(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0x08,
+       /* A bit 11 of general purpose flag should be 0x08,
         * which indicates the filename charset is UTF-8. */
        assertEqualInt(0x08, buff[7]);
        /* Check UTF-8 version. */
@@ -493,15 +493,15 @@ test_zip_filename_encoding_CP932(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        /* Above three characters in CP932/SJIS should not translate to
         * any character-set. */
        assertEqualMem(buff + 30, "\x95\x5C.txt", 6);
 
        /*
-        * Verify that A bit 11 of general purpos flag is not set
+        * Verify that A bit 11 of general purpose flag is not set
         * when ASCII filenames are stored even if hdrcharset=UTF-8
         * is specified.
         */
@@ -526,8 +526,8 @@ test_zip_filename_encoding_CP932(void)
        archive_entry_free(entry);
        assertEqualInt(ARCHIVE_OK, archive_write_free(a));
 
-       /* A bit 11 of general purpos flag should be 0,
-        * which indicates the filename charset is unkown. */
+       /* A bit 11 of general purpose flag should be 0,
+        * which indicates the filename charset is unknown. */
        assertEqualInt(0, buff[7]);
        assertEqualMem(buff + 30, "abcABC", 6);
 }
index e211362066ef24d36b875decf8d7682cfea86afb..ff8a10508b28b183022a7a5e677dfa8abd8e9554 100644 (file)
@@ -132,7 +132,7 @@ pm(const char *p, const char *s, int flags)
                        }
                        return (*s == '\0');
                case '?':
-                       /* ? always succeds, unless we hit end of 's' */
+                       /* ? always succeeds, unless we hit end of 's' */
                        if (*s == '\0')
                                return (0);
                        break;
index 3963bea6e68ada4262a58f0e042651f3fe401d40..c1fae6a0dc96769b36f9c8ced93cc85a8a3c73a0 100644 (file)
@@ -337,8 +337,8 @@ main(int argc, char **argv)
                        break;
                case OPTION_INCLUDE:
                        /*
-                        * Noone else has the @archive extension, so
-                        * noone else needs this to filter entries
+                        * No one else has the @archive extension, so
+                        * no one else needs this to filter entries
                         * when transforming archives.
                         */
                        if (lafe_include(&bsdtar->matching, bsdtar->argument))
index 3d9ee3b6160cb2f01a49935bb1e0f28251e81361..b85940bf4b32ff84d6b041f9c8990c6379ad27e2 100644 (file)
@@ -270,7 +270,7 @@ failure(const char *fmt, ...)
  * pass __FILE__, __LINE__ directly into the function instead of using
  * this hook.  I suspect this machinery is used so rarely that we
  * would be better off just removing it entirely.  That would simplify
- * the code here noticably.
+ * the code here noticeably.
  */
 static const char *skipping_filename;
 static int skipping_line;
index e0ecca74fbbb8a617073f83a0300b429086f0a03..b73c7a3f4faba317b5c369feaa89ede4a80b7884 100644 (file)
@@ -56,7 +56,7 @@ DEFINE_TEST(test_0)
        }
 
        /*
-        * Try to succesfully run the program; this requires that
+        * Try to successfully run the program; this requires that
         * we know some option that will succeed.
         */
        if (0 == systemf("%s --version >" DEV_NULL, testprog)) {