]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix typos (#2143)
authorTobias Stoeckmann <stoeckmann@users.noreply.github.com>
Thu, 25 Apr 2024 09:22:45 +0000 (09:22 +0000)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2024 09:22:45 +0000 (11:22 +0200)
Fix typos in comments, documentation, and error messages.

13 files changed:
README.md
libarchive/archive.h
libarchive/archive_entry_acl.3
libarchive/archive_read_disk.3
libarchive/archive_read_support_format_all.c
libarchive/archive_read_support_format_ar.c
libarchive/archive_read_support_format_lha.c
libarchive/archive_read_support_format_mtree.c
libarchive/archive_read_support_format_zip.c
libarchive/archive_write_private.h
libarchive/archive_write_set_format_gnutar.c
libarchive/libarchive_internals.3
libarchive/test/test_read_format_xar_doublelink.xar.uu

index 727ed49856b637ed8f95a0f9fa21a7084dc03809..933de6986425d016a9ac35a0267d18497cfaf4dd 100644 (file)
--- a/README.md
+++ b/README.md
@@ -201,7 +201,7 @@ questions we are asked about libarchive:
   In case other thread calls the same function in parallel, it might
   get interrupted by it and cause the executable to use umask=0 for the
   remaining execution.
-  This will then lead to implicitely created directories to have 777
+  This will then lead to implicitly created directories to have 777
   permissions without sticky bit.
 
 * In particular, libarchive's modules to read or write a directory
index 7c526647cb5b6ab3dd0c113512cb1dc69f796d1d..773649a6ef9f4e6cd2baf2e2e8b821aa5eb45585 100644 (file)
@@ -895,7 +895,7 @@ __LA_DECL int archive_write_set_options(struct archive *_a,
                            const char *opts);
 
 /*
- * Set a encryption passphrase.
+ * Set an encryption passphrase.
  */
 __LA_DECL int archive_write_set_passphrase(struct archive *_a, const char *p);
 __LA_DECL int archive_write_set_passphrase_callback(struct archive *,
index 50dd642c20c6b76a127d601b3dc09fdead063e33..4d0d8b50ed07e34f3beb3809a35829648900f829 100644 (file)
@@ -383,7 +383,7 @@ Prefix each default ACL entry with the word
 The mask and other ACLs don not contain a double colon.
 .El
 .Pp
-The following flags are effecive only on NFSv4 ACL:
+The following flags are effective only on NFSv4 ACL:
 .Bl -tag -offset indent -compact -width ARCHIV
 .It Dv ARCHIVE_ENTRY_ACL_STYLE_COMPACT
 Do not output minus characters for unset permissions and flags in NFSv4 ACL
index 7cde3c232713c680e6ff22dc632d2d70ea4948d8..990c1514c4d5845186a9cfeebc0dabe540c1999b 100644 (file)
@@ -288,11 +288,11 @@ calls. If matched based on calls to
 .Tn archive_match_time_excluded ,
 or
 .Tn archive_match_owner_excluded ,
-then the callback function specified by the _excluded_func parameter will execute. This function will recieve data provided to the fourth parameter, void *_client_data.
+then the callback function specified by the _excluded_func parameter will execute. This function will receive data provided to the fourth parameter, void *_client_data.
 .It Fn archive_read_disk_set_metadata_filter_callback
 Allows the caller to set a callback function during calls to
 .Xr archive_read_header 3
-to filter out metadata for each entry. The callback function recieves the
+to filter out metadata for each entry. The callback function receives the
 .Tn struct archive
 object, void* custom filter data, and the 
 .Tn struct archive_entry .
index 5a4e1ab675a5cda097781c3a4b0103f61524cda0..3b53c9ad5f572e5b6155fc694f40f7a03e85192e 100644 (file)
@@ -67,7 +67,7 @@ archive_read_support_format_all(struct archive *a)
         * increase the chance that a high bid from someone else will
         * make it unnecessary for these to do anything at all.
         */
-       /* These three have potentially large look-ahead. */
+       /* These have potentially large look-ahead. */
        archive_read_support_format_7zip(a);
        archive_read_support_format_cab(a);
        archive_read_support_format_rar(a);
index ca8effb0b0ee883ca9cc182dc3beb73b787539a1..6f1be8591fef66e84469b841d050b0e967927c1e 100644 (file)
@@ -270,7 +270,7 @@ _ar_read_header(struct archive_read *a, struct archive_entry *entry,
                }
                if (ar->strtab != NULL) {
                        archive_set_error(&a->archive, EINVAL,
-                           "More than one string tables exist");
+                           "More than one string table exists");
                        return (ARCHIVE_FATAL);
                }
 
@@ -515,7 +515,7 @@ archive_read_format_ar_read_data(struct archive_read *a,
                if (ar->entry_padding) {
                        if (skipped >= 0) {
                                archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                                       "Truncated ar archive- failed consuming padding");
+                                       "Truncated ar archive - failed consuming padding");
                        }
                        return (ARCHIVE_FATAL);
                }
index 1c64b2900b8e051e149d1f63c0a682317e29bef7..4d6290ac33bb18f57b3d9fce8b59727c9f09088a 100644 (file)
@@ -1693,7 +1693,7 @@ archive_read_format_lha_cleanup(struct archive_read *a)
  * example.
  *   1. a symbolic-name is 'aaa/bb/cc'
  *   2. a filename is 'xxx/bbb'
- *  then a archived pathname is 'xxx/bbb|aaa/bb/cc'
+ *  then an archived pathname is 'xxx/bbb|aaa/bb/cc'
  */
 static int
 lha_parse_linkname(struct archive_wstring *linkname,
@@ -2385,7 +2385,7 @@ lzh_decode_blocks(struct lzh_stream *strm, int last)
                                        return (100);
                                }
 
-                               /* lzh_br_read_ahead() always try to fill the
+                               /* lzh_br_read_ahead() always tries to fill the
                                 * cache buffer up. In specific situation we
                                 * are close to the end of the data, the cache
                                 * buffer will not be full and thus we have to
index 630cff6e39991800069ff2dd5a79483f0ef8f760..6971228eefadb801fec012ed9a19e7bd7e7a746c 100644 (file)
@@ -416,8 +416,8 @@ next_line(struct archive_read *a,
 }
 
 /*
- * Compare characters with a mtree keyword.
- * Returns the length of a mtree keyword if matched.
+ * Compare characters with an mtree keyword.
+ * Returns the length of an mtree keyword if matched.
  * Returns 0 if not matched.
  */
 static int
@@ -515,7 +515,7 @@ bid_keyword(const char *p,  ssize_t len)
 
 /*
  * Test whether there is a set of mtree keywords.
- * Returns the number of keyword.
+ * Returns the number of keywords.
  * Returns -1 if we got incorrect sequence.
  * This function expects a set of "<space characters>keyword=value".
  * When "unset" is specified, expects a set of "<space characters>keyword".
@@ -760,7 +760,7 @@ detect_form(struct archive_read *a, int *is_form_d)
                                        multiline = 1;
                                else {
                                        /* We've got plenty of correct lines
-                                        * to assume that this file is a mtree
+                                        * to assume that this file is an mtree
                                         * format. */
                                        if (++entry_cnt >= MAX_BID_ENTRY)
                                                break;
index 7552a1a1a2f033c890fb06ad72c8b865b7cb7b5a..c9759eaf9a898b1e5ac6c414647914ab582699b2 100644 (file)
@@ -1393,7 +1393,7 @@ check_authentication_code(struct archive_read *a, const void *_p)
  *  [CRC32] [compressed low] [compressed high] [uncompressed low] [uncompressed high] [other PK marker]
  * ```
  * Since the 32-bit and 64-bit compressed sizes both match, the
- * actualy size must fit in 32 bits, which implies the high-order
+ * actual size must fit in 32 bits, which implies the high-order
  * word of the compressed size is zero.  So we know the uncompressed
  * low word is zero, which again implies that if we accept the shorter
  * format, there will not be a valid PK marker following it.
index abd5a8ddcd856ef6b0689c8d092f70385274df97..f259ccb16546caa9a545a51234e8645da00058af 100644 (file)
@@ -158,7 +158,7 @@ int __archive_write_program_write(struct archive_write_filter *,
            struct archive_write_program_data *, const void *, size_t);
 
 /*
- * Get a encryption passphrase.
+ * Get an encryption passphrase.
  */
 const char * __archive_write_get_passphrase(struct archive_write *a);
 #endif
index 92b06c5f5fb4b50d759609e66227a78cba8ec3d5..a88350b8741193a80bedb564387a72f0832a95f1 100644 (file)
@@ -387,7 +387,7 @@ archive_write_gnutar_header(struct archive_write *a,
        if (r != 0) {
                if (errno == ENOMEM) {
                        archive_set_error(&a->archive, ENOMEM,
-                           "Can't allocate memory for Pathame");
+                           "Can't allocate memory for pathname");
                        ret = ARCHIVE_FATAL;
                        goto exit_write_header;
                }
index d4696f6482923af49337f81462c310b6bffdde96..2978b48c3e97b3549b9e84abfae89f53d68fb49d 100644 (file)
@@ -124,7 +124,7 @@ to read the entire file into memory at once and return the
 entire file to libarchive as a single block;
 other clients may begin asynchronous I/O operations for the
 next block on each request.
-.Ss Decompresssion Layer
+.Ss Decompression Layer
 The decompression layer not only handles decompression,
 it also buffers data so that the format handlers see a
 much nicer I/O model.
index 5fed96af9d96cd538ab2074ccbc673ce05161880..7aa638a86e7ce5ade1ad29bee4fd798bac93d283 100644 (file)
@@ -1,4 +1,4 @@
-begin 664 test_read_foxmat_xar_doublelink.xar
+begin 664 test_read_format_xar_doublelink.xar
 M>&%R(0`<``$````````!0`````````/7`````7B<[9/!<L(@%$7W?@7#/H60
 MU'0R!'?]`KOICDF>D3&``]'1?GT!-1U;;:=[5[G<=WB0=P>^..@![<%Y94V#
 M\R>*$9C6=LKT#7Y;OF8O>"%F_""=F"$^VC9\$&\=R#'LR$:E03#*RHR6&2N6