[Bug 13036] New: busybox ar unable to uncompress archives produced with -D deterministic-archives options from binutils ar
bugzilla at busybox.net
bugzilla at busybox.net
Wed Jun 24 22:22:04 UTC 2020
https://bugs.busybox.net/show_bug.cgi?id=13036
Bug ID: 13036
Summary: busybox ar unable to uncompress archives produced with
-D deterministic-archives options from binutils ar
Product: Busybox
Version: 1.33.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: raj.khem at gmail.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
Here is test case
$ touch test
$ ar -crfD xx
$ ./busybox_unstripped ar -x ./xx
ar: unrecognized file type
It works ok if the archive is produced using ar -crfU
It seems that the file modes change from 100644 to 0644 in archive header
which confuses busybox ar where its checking
libarchive/data_extract_all.c
/* Create the filesystem entry */
switch (file_header->mode & S_IFMT) {
case S_IFREG: {
...
and fails this check and reports the above mentioned error.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list