]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
7zip: Fix typos in comment 2985/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 27 Apr 2026 18:15:44 +0000 (20:15 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 27 Apr 2026 18:15:44 +0000 (20:15 +0200)
Also clarify that all systems will handle these SFX files, no matter on
which system libarchive is used.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_format_7zip.c

index 79519e9b201093745cbc620d0588852f946ee55c..5dc3b02dc6a2f6ae87308ca10ba96d907299e13e 100644 (file)
@@ -548,9 +548,9 @@ get_data_offset(struct archive_read *a, int64_t *data_offset)
        }
 
        /*
-        * It may a 7-Zip SFX archive file. If first two bytes are
-        * 'M' and 'Z' available on Windows or first four bytes are
-        * "\x7F\x45LF" available on posix like system, seek the 7-Zip
+        * It may be a 7-Zip SFX archive file. If first two bytes are
+        * 'M' and 'Z' (PE, Windows) or first four bytes are
+        * "\x7F\x45LF" (ELF, Posix-like systems), seek the 7-Zip
         * signature. While get_pe_sfx_offset can be performed without
         * performing a seek, get_elf_sfx_offset requires one,
         * thus a performance difference between the two is expected.