← Commit list

958ac18d4

Glenn L McGrath
Glenn L McGrath
2004-04-09
FAILED Duration: 42s

Subject

Add a comment explaining why we have to check for an extra \n

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libunarchive/get_header_ar.c+3 -1
@@ -47,7 +47,9 @@ extern char get_header_ar(archive_handle_t *archive_handle)
return(EXIT_FAILURE);
}
- /* Some ar entries have a trailing '\n' after the previous data entry */
+ /* ar header starts on an even byte (2 byte aligned)
+ * '\n' is used for padding
+ */
if (ar.raw[0] == '\n') {
/* fix up the header, we started reading 1 byte too early */
memmove(ar.raw, &ar.raw[1], 59);