]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix typos 1540/head
authorSamanta Navarro <ferivoz@riseup.net>
Tue, 1 Jun 2021 11:26:02 +0000 (11:26 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Tue, 1 Jun 2021 11:26:14 +0000 (11:26 +0000)
Typos found with codespell

15 files changed:
CMakeLists.txt
build/utils/gen_archive_string_composition_h.sh
contrib/libarchive.spec
contrib/shar/shar.c
libarchive/archive_read_support_filter_rpm.c
libarchive/archive_read_support_filter_uu.c
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_mtree.c
libarchive/cpio.5
libarchive/test/test_compat_lzma.c
libarchive/test/test_write_disk_appledouble.c
libarchive/test/test_write_disk_hfs_compression.c
libarchive/test/test_write_disk_mac_metadata.c
libarchive/test/test_write_disk_no_hfs_compression.c
tar/test/test_option_safe_writes.c

index 95537fe87fe6eca6038f2d4d9588fa86a360626a..d6b9b2f968200ddd00e337156c848188d09f924a 100644 (file)
@@ -77,7 +77,7 @@ math(EXPR INTERFACE_VERSION  "13 + ${_minor}")
 # ?? Should there be more here ??
 SET(SOVERSION "${INTERFACE_VERSION}")
 
-# Enalbe CMAKE_PUSH_CHECK_STATE() and CMAKE_POP_CHECK_STATE() macros
+# Enable CMAKE_PUSH_CHECK_STATE() and CMAKE_POP_CHECK_STATE() macros
 # saving and restoring the state of the variables.
 INCLUDE(CMakePushCheckState)
 
@@ -378,7 +378,7 @@ IF(WIN32 AND NOT CMAKE_CL_64 AND NOT CYGWIN)
   SET(__GNUWIN32PATH "C:/Program Files/GnuWin32")
 ENDIF(WIN32 AND NOT CMAKE_CL_64 AND NOT CYGWIN)
 IF(DEFINED __GNUWIN32PATH AND EXISTS "${__GNUWIN32PATH}")
-  # You have to add a path availabel DLL file into PATH environment variable.
+  # You have to add a path available DLL file into PATH environment variable.
   # Maybe DLL path is "C:/Program Files/GnuWin32/bin".
   # The zlib and the bzip2 Setup program have installed programs and DLLs into
   # "C:/Program Files/GnuWin32" by default.
@@ -1015,7 +1015,7 @@ MACRO(CHECK_ICONV LIB TRY_ICONV_CONST)
         CMAKE_C_COMPILER_ID MATCHES "^Clang$")
       #
       # During checking iconv proto type, we should use -Werror to avoid the
-      # success of iconv detection with a warnig which success is a miss
+      # success of iconv detection with a warning which success is a miss
       # detection. So this needs for all build mode(even it's a release mode).
       #
       SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -Werror")
index 925de5c85e784c35d2291b86d4d9550042a15a02..558e9c0c7cb5cdbfe25de708863f7c68b448d886 100755 (executable)
@@ -246,7 +246,7 @@ function hextoi(hex)
 # Exclusion code points specified by  
 # http://unicode.org/Public/6.0.0/ucd/CompositionExclusions.txt
 ##
-# 1. Script Specifices
+# 1. Script Specifics
 ##
 \$1 ~/^095[89ABCDEF]\$/ {
     next
index 6ef8957f176eb28fdd418e0d958b2c9f1232b4ea..371ae647fdeebe942c2438d2f32ae64525f07fec 100644 (file)
@@ -99,7 +99,7 @@ replace ()
             print \".Dt ${binary^^} 1\";
             next;
         }
-        # replace the first occurence of \"$pattern\" by \"$binary\"
+        # replace the first occurrence of \"$pattern\" by \"$binary\"
         !stop && /^.Nm $pattern/ {
             print \".Nm $binary\" ;
             stop = 1 ;
index 6d5c206e2a519f46d42950bbafc0a524d27381a7..63161fc9ea947cb1b429b71ac75e3d152205ce56 100644 (file)
@@ -170,7 +170,7 @@ out:
 }
 
 /*
- * Write singe path to the archive. The path can be a regular file, directory
+ * Write single path to the archive. The path can be a regular file, directory
  * or device. Symbolic links are followed.
  */
 static int
index e7e58e51f3b029dd4dd8cc93a0b1edf65a569645..ddd68392f788f3661df709d5bb4631c110ab9536 100644 (file)
@@ -216,7 +216,7 @@ rpm_filter_read(struct archive_read_filter *self, const void **buff)
                                                archive_set_error(
                                                    &self->archive->archive,
                                                    ARCHIVE_ERRNO_FILE_FORMAT,
-                                                   "Unrecoginized rpm header");
+                                                   "Unrecognized rpm header");
                                                return (ARCHIVE_FATAL);
                                        }
                                        rpm->state = ST_ARCHIVE;
index 67ddffb06943633fbf9737417bcfc2029e54d9d4..689c18ce43904c6cdeaa474f2e663ee9afa825c0 100644 (file)
@@ -248,7 +248,7 @@ bid_get_line(struct archive_read_filter *filter,
                *ravail = *avail;
                *b += diff;
                *avail -= diff;
-               tested = len;/* Skip some bytes we already determinated. */
+               tested = len;/* Skip some bytes we already determined. */
                len = get_line(*b + tested, *avail - tested, nl);
                if (len >= 0)
                        len += tested;
index f98566a359850504454728e62054c018361a8104..63cbb7df32c8177a8054bbe864e8ecdeb56b4318 100644 (file)
@@ -1497,7 +1497,7 @@ decompress(struct archive_read *a, struct _7zip *zip,
                                zip->ppmd7_stat = -1;
                                archive_set_error(&a->archive,
                                    ARCHIVE_ERRNO_MISC,
-                                   "Failed to initialize PPMd range decorder");
+                                   "Failed to initialize PPMd range decoder");
                                return (ARCHIVE_FAILED);
                        }
                        if (zip->ppstream.overconsumed) {
index c5ce01853c84cfee214b66dd9c3d55421ab92ba0..cef2c5c4b1ae9ece7cbcd46bb643475ce6a97e82 100644 (file)
@@ -408,7 +408,7 @@ next_line(struct archive_read *a,
                *ravail = *avail;
                *b += diff;
                *avail -= diff;
-               tested = len;/* Skip some bytes we already determinated. */
+               tested = len;/* Skip some bytes we already determined. */
                len = get_line_size(*b + len, *avail - len, nl);
                if (len >= 0)
                        len += tested;
index 9fb9b06b85fcef32316a7d130b7204f0a44eb058..837a45692e3bea98191aac3e9d07c9743551df60 100644 (file)
@@ -186,7 +186,7 @@ in the struct, were accessed using a macro that byte swapped them if
 necessary.
 .Pp
 Next, 7th Edition had more file types to store, and the IALLOC and ILARG
-flag bits were re-purposed to accomodate these.  The revised use of the
+flag bits were re-purposed to accommodate these.  The revised use of the
 various bits is as follows:
 .Pp
 .Bl -tag -width "MMMMMMM" -compact
index 86a2665b35181617600a2f45b46d9dceb9019bbb..7e6e3a89f9c1bc77700a803a021db10399a07d59 100644 (file)
@@ -141,7 +141,7 @@ compat_lzma(const char *name)
 
 DEFINE_TEST(test_compat_lzma)
 {
-       /* This sample has been added junk datas to its tail. */
+       /* This sample has been added junk data to its tail. */
        compat_lzma("test_compat_lzma_1.tlz");
        /* This sample has been made by lzma with option -e,
         * the first byte of which is 0x5e.
index 706794ab95bf5e79d03ff9491d139fe8168923da..d82d698ebda7623b15cbb3e261b0e7d23cc0e945 100644 (file)
@@ -67,7 +67,7 @@ has_xattr(const char *filename, const char *xattrname)
 {
        char *nl, *nlp;
        ssize_t r;
-       int exisiting;
+       int existing;
 
        r = listxattr(filename, NULL, 0, XATTR_SHOWCOMPRESSION);
        if (r < 0)
@@ -85,15 +85,15 @@ has_xattr(const char *filename, const char *xattrname)
                return (0);
        }
 
-       exisiting = 0;
+       existing = 0;
        for (nlp = nl; nlp < nl + r; nlp += strlen(nlp) + 1) {
                if (strcmp(nlp, xattrname) == 0) {
-                       exisiting = 1;
+                       existing = 1;
                        break;
                }
        }
        free(nl);
-       return (exisiting);
+       return (existing);
 }
 
 #endif
index 2960fe2ed6dd0622c58abd123ee28c2cc29d9f1b..8a2e7df3b9b2445b9cafc67f8ed9f797d32408be 100644 (file)
@@ -37,7 +37,7 @@ has_xattr(const char *filename, const char *xattrname)
 {
        char *nl, *nlp;
        ssize_t r;
-       int exisiting;
+       int existing;
 
        r = listxattr(filename, NULL, 0, XATTR_SHOWCOMPRESSION);
        if (r < 0)
@@ -55,15 +55,15 @@ has_xattr(const char *filename, const char *xattrname)
                return (0);
        }
 
-       exisiting = 0;
+       existing = 0;
        for (nlp = nl; nlp < nl + r; nlp += strlen(nlp) + 1) {
                if (strcmp(nlp, xattrname) == 0) {
-                       exisiting = 1;
+                       existing = 1;
                        break;
                }
        }
        free(nl);
-       return (exisiting);
+       return (existing);
 }
 static int
 get_rsrc_footer(const char *filename, char *buff, size_t s)
index 6e9e72365e138fb1a1f60c857ea5da9848bc8586..be13d96afddf075267a5fb36c5e8734ef4b2bf1e 100644 (file)
@@ -67,7 +67,7 @@ has_xattr(const char *filename, const char *xattrname)
 {
        char *nl, *nlp;
        ssize_t r;
-       int exisiting;
+       int existing;
 
        r = listxattr(filename, NULL, 0, XATTR_SHOWCOMPRESSION);
        if (r < 0)
@@ -85,15 +85,15 @@ has_xattr(const char *filename, const char *xattrname)
                return (0);
        }
 
-       exisiting = 0;
+       existing = 0;
        for (nlp = nl; nlp < nl + r; nlp += strlen(nlp) + 1) {
                if (strcmp(nlp, xattrname) == 0) {
-                       exisiting = 1;
+                       existing = 1;
                        break;
                }
        }
        free(nl);
-       return (exisiting);
+       return (existing);
 }
 
 #endif
index b7210e204a145bf57dd4e862069495d34ec7c6eb..0af44d246a115fb22de7406edaaf8001b65b20f5 100644 (file)
@@ -37,7 +37,7 @@ has_xattr(const char *filename, const char *xattrname)
 {
        char *nl, *nlp;
        ssize_t r;
-       int exisiting;
+       int existing;
 
        r = listxattr(filename, NULL, 0, XATTR_SHOWCOMPRESSION);
        if (r < 0)
@@ -55,15 +55,15 @@ has_xattr(const char *filename, const char *xattrname)
                return (0);
        }
 
-       exisiting = 0;
+       existing = 0;
        for (nlp = nl; nlp < nl + r; nlp += strlen(nlp) + 1) {
                if (strcmp(nlp, xattrname) == 0) {
-                       exisiting = 1;
+                       existing = 1;
                        break;
                }
        }
        free(nl);
-       return (exisiting);
+       return (existing);
 }
 #endif
 
index 8edf5c69f7ecebe14a967864b71a1fe6b5dce3b5..7b42e8f62253789a0f85ef4d21aefd5f58351083 100644 (file)
@@ -58,7 +58,7 @@ DEFINE_TEST(test_option_safe_writes)
        }
        assertEqualInt(0, chdir(".."));
 
-       /* Extract created archive withe safe writes */
+       /* Extract created archive with safe writes */
        assertEqualInt(0,
            systemf("%s -x -C out --safe-writes -f t.tar "
            ">unpack.out 2>unpack.err", testprog));