]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove periods from error messages
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Mar 2026 08:12:51 +0000 (09:12 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Mar 2026 13:30:44 +0000 (14:30 +0100)
Some error messages previously slipped through. Remove periods from
these messages as well.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
14 files changed:
cpio/cpio.c
libarchive/archive_check_magic.c
libarchive/archive_read.c
libarchive/archive_read_support_filter_lz4.c
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_cab.c
libarchive/archive_read_support_format_iso9660.c
libarchive/archive_read_support_format_rar.c
libarchive/archive_read_support_format_zip.c
libarchive/archive_write.c
libarchive/archive_write_set_format_iso9660.c
tar/bsdtar.c
tar/read.c
tar/write.c

index 9a6a558d11d3dd3c9aad7d0b0964f2399a2898a7..cddd604fdac077a632d8ee811dcb017ab1bb957f 100644 (file)
@@ -526,7 +526,7 @@ mode_out(struct cpio *cpio)
        int r;
 
        if (cpio->option_append)
-               lafe_errc(1, 0, "Append mode not yet supported.");
+               lafe_errc(1, 0, "Append mode not yet supported");
 
        cpio->archive_read_disk = archive_read_disk_new();
        if (cpio->archive_read_disk == NULL)
@@ -884,7 +884,7 @@ entry_to_archive(struct cpio *cpio, struct archive_entry *entry)
                        if (bytes_write < bytes_read) {
                                lafe_warnc(0,
                                    "Truncated write; file may have "
-                                   "grown while being archived.");
+                                   "grown while being archived");
                        }
                        bytes_read = read(fd, buff, sizeof(buff));
                }
index 239cfb3966dc3751a1f52586537935dca9afeea7..b6e1257949e1af068fe7831b33cb0902f9a1cf11 100644 (file)
@@ -148,7 +148,7 @@ __archive_check_magic(struct archive *a, unsigned int magic,
        if (!handle_type) {
                errmsg("PROGRAMMER ERROR: Function ");
                errmsg(function);
-               errmsg(" invoked with invalid archive handle.\n");
+               errmsg(" invoked with invalid archive handle\n");
                diediedie();
        }
 
index f57777ec0aef9c15bbcaa63211923048029dd6a4..e5f89bdc877279552457679205cf60d534ce1974 100644 (file)
@@ -171,7 +171,7 @@ static int64_t
 client_skip_proxy(struct archive_read_filter *self, int64_t request)
 {
        if (request < 0)
-               __archive_errx(1, "Negative skip requested.");
+               __archive_errx(1, "Negative skip requested");
        if (request == 0)
                return 0;
 
index 144572ef2362f65491adf2c9c668af4bf920f884..acd7f515799774e25ab51a89d769e3aa556c5615 100644 (file)
@@ -363,7 +363,7 @@ lz4_filter_read(struct archive_read_filter *self, const void **p)
        case READ_LEGACY_STREAM:
                /* Reading a lz4 stream already failed. */
                archive_set_error(&self->archive->archive,
-                   ARCHIVE_ERRNO_MISC, "Invalid sequence.");
+                   ARCHIVE_ERRNO_MISC, "Invalid sequence");
                return (ARCHIVE_FATAL);
        case READ_DEFAULT_BLOCK:
                ret = lz4_filter_read_default_stream(self, p);
@@ -377,7 +377,7 @@ lz4_filter_read(struct archive_read_filter *self, const void **p)
                break;
        default:
                archive_set_error(&self->archive->archive,
-                   ARCHIVE_ERRNO_MISC, "Program error.");
+                   ARCHIVE_ERRNO_MISC, "Program error");
                return (ARCHIVE_FATAL);
        }
 
index 66147fa39bb40874d7cd68b8c3e7db78a1945390..bab886a4ee9e14a92f3212037e56132ad62a27d1 100644 (file)
@@ -1581,7 +1581,7 @@ init_decompression(struct archive_read *a, struct _7zip *zip,
                            -15 /* Don't check for zlib header */);
                if (r != Z_OK) {
                        archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                           "Couldn't initialize zlib stream.");
+                           "Couldn't initialize zlib stream");
                        return (ARCHIVE_FAILED);
                }
                zip->stream_valid = 1;
index cc43ec1d1b4e779a5866b5463cbb215225ca1d7e..57c462788a5932f26e060396049da7fb664137e4 100644 (file)
@@ -1452,7 +1452,7 @@ cab_read_ahead_cfdata_deflate(struct archive_read *a, ssize_t *avail)
                            -15 /* Don't check for zlib header */);
                if (r != Z_OK) {
                        archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                           "Can't initialize deflate decompression.");
+                           "Can't initialize deflate decompression");
                        *avail = ARCHIVE_FATAL;
                        return (NULL);
                }
index d5c6a08804685dbfd2d167fa7e49a521885fb04f..b2f662b388b6ce536f996ed9880b4cd40dce91f3 100644 (file)
@@ -1663,7 +1663,7 @@ zisofs_read_data(struct archive_read *a,
                        r = inflateInit(&zisofs->stream);
                if (r != Z_OK) {
                        archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                           "Can't initialize zisofs decompression.");
+                           "Can't initialize zisofs decompression");
                        return (ARCHIVE_FATAL);
                }
                zisofs->stream_valid = 1;
index f680e3fe30ae25f135b0af9a1fda5a1481318364..8844dd13b40db77e9019c7f06c1f8b98afdaa696 100644 (file)
@@ -2769,12 +2769,12 @@ add_value(struct archive_read *a, struct huffman_code *code, int value,
 
       if ((repeatnode = new_node(code)) < 0) {
         archive_set_error(&a->archive, ENOMEM,
-                          "Unable to allocate memory for node data.");
+                          "Unable to allocate memory for node data");
         return (ARCHIVE_FATAL);
       }
       if ((nextnode = new_node(code)) < 0) {
         archive_set_error(&a->archive, ENOMEM,
-                          "Unable to allocate memory for node data.");
+                          "Unable to allocate memory for node data");
         return (ARCHIVE_FATAL);
       }
 
index f0789bc5c8915022f5a0c8864a221cb90fb76386..24a4abcdb1d5d35a9ac2b89ccc7d5864ee5d9ea8 100644 (file)
@@ -2527,7 +2527,7 @@ zip_deflate_init(struct archive_read *a, struct zip *zip)
                            -15 /* Don't check for zlib header */);
                if (r != Z_OK) {
                        archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                           "Can't initialize ZIP decompression.");
+                           "Can't initialize ZIP decompression");
                        return (ARCHIVE_FATAL);
                }
                /* Stream structure has been set up. */
index e1ce5d57288db0a5a23965f750940b87a0e277c7..14dc7339ec5a60af70b322f71fd2b34b59cad934 100644 (file)
@@ -742,7 +742,7 @@ _archive_write_header(struct archive *_a, struct archive_entry *entry)
 
        if (a->format_write_header == NULL) {
                archive_set_error(&(a->archive), -1,
-                   "Format must be set before you can write to an archive.");
+                   "Format must be set before you can write to an archive");
                a->archive.state = ARCHIVE_STATE_FATAL;
                return (ARCHIVE_FATAL);
        }
index fcebac2860f9a16a63b6ec6e61fbf7d8f710b10c..359a2737365fe94230ba8f64636f4c4e8e721a59 100644 (file)
@@ -7964,7 +7964,7 @@ zisofs_extract(struct archive_write *a, struct zisofs_extract *zisofs,
                        r = inflateInit(&zisofs->stream);
                if (r != Z_OK) {
                        archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
-                           "Can't initialize zisofs decompression.");
+                           "Can't initialize zisofs decompression");
                        return (ARCHIVE_FATAL);
                }
                zisofs->stream_valid = 1;
index bdaddab2009725654dba21c6abbd276e5efc9f27..fbc0627a83b9c657fda953faf5bfab47892ea208 100644 (file)
@@ -1026,7 +1026,7 @@ main(int argc, char **argv)
 
        if (bsdtar->return_value != 0)
                lafe_warnc(0,
-                   "Error exit delayed from previous errors.");
+                   "Error exit delayed from previous errors");
        return (bsdtar->return_value);
 }
 
index 7cbcfb19ff0ac3e70f596512f2f0df46f77dc7b1..4acbf6b2a9dc1c29b6a5977f0b022e9b5658e6f0 100644 (file)
@@ -255,7 +255,7 @@ read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer)
                        break;
                p = archive_entry_pathname(entry);
                if (p == NULL || p[0] == '\0') {
-                       lafe_warnc(0, "Archive entry has empty or unreadable filename ... skipping.");
+                       lafe_warnc(0, "Archive entry has empty or unreadable filename ... skipping");
                        bsdtar->return_value = 1;
                        continue;
                }
index d414d283bc48f2c9a77b0f31e74bdf936f0cf46c..abff3831bcdaaa1bf35c8b9e3bf9a6ba126f4fad 100644 (file)
@@ -301,7 +301,7 @@ tar_mode_r(struct bsdtar *bsdtar)
                        archive_read_free(a);
                        close(bsdtar->fd);
                        lafe_errc(1, 0,
-                           "Cannot append to compressed archive.");
+                           "Cannot append to compressed archive");
                }
                /* Keep going until we hit end-of-archive */
                format = archive_format(a);
@@ -329,7 +329,7 @@ tar_mode_r(struct bsdtar *bsdtar)
                if (format != (int)(archive_format(a) & ARCHIVE_FORMAT_BASE_MASK)
                    && format != ARCHIVE_FORMAT_EMPTY) {
                        lafe_errc(1, 0,
-                           "Format %s is incompatible with the archive %s.",
+                           "Format %s is incompatible with the archive %s",
                            cset_get_format(bsdtar->cset), bsdtar->filename);
                }
        } else {
@@ -394,7 +394,7 @@ tar_mode_u(struct bsdtar *bsdtar)
                        archive_read_free(a);
                        close(bsdtar->fd);
                        lafe_errc(1, 0,
-                           "Cannot append to compressed archive.");
+                           "Cannot append to compressed archive");
                }
                if (archive_match_exclude_entry(bsdtar->matching,
                    ARCHIVE_MATCH_MTIME | ARCHIVE_MATCH_OLDER |
@@ -786,7 +786,7 @@ copy_file_data_block(struct bsdtar *bsdtar, struct archive *a,
                                         * continue. */
                                        lafe_warnc(0,
                                            "%s: Truncated write; file may "
-                                           "have grown while being archived.",
+                                           "have grown while being archived",
                                            archive_entry_pathname(entry));
                                        return (0);
                                }
@@ -805,7 +805,7 @@ copy_file_data_block(struct bsdtar *bsdtar, struct archive *a,
                        /* Write was truncated; warn but continue. */
                        lafe_warnc(0,
                            "%s: Truncated write; file may have grown "
-                           "while being archived.",
+                           "while being archived",
                            archive_entry_pathname(entry));
                        return (0);
                }
@@ -1052,14 +1052,14 @@ test_for_append(struct bsdtar *bsdtar)
        if (*bsdtar->argv == NULL && bsdtar->names_from_file == NULL)
                lafe_errc(1, 0, "no files or directories specified");
        if (bsdtar->filename == NULL)
-               lafe_errc(1, 0, "Cannot append to stdout.");
+               lafe_errc(1, 0, "Cannot append to stdout");
 
        if (stat(bsdtar->filename, &s) != 0)
                return;
 
        if (!S_ISREG(s.st_mode) && !S_ISBLK(s.st_mode))
                lafe_errc(1, 0,
-                   "Cannot append to %s: not a regular file.",
+                   "Cannot append to %s: not a regular file",
                    bsdtar->filename);
 
 /* Is this an appropriate check here on Windows? */