[Bug tools/28729] After eu-ar -r added file into archive, it changes file permission

2022-08-28 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28729 Mark Wielaard changed: What|Removed |Added Assignee|unassigned at sourceware dot org |mark at klomp dot org

[PATCH] libelf: Correctly decode ar_mode as octal string

2022-08-28 Thread Mark Wielaard
ar_mode is encoded as an octal ascii string, not decimal. Add a new OCT_FIELD macro to decode it. Signed-off-by: Mark Wielaard --- This was found by the run-ar-N.sh testcase on the try builder. libelf/ChangeLog | 5 + libelf/elf_begin.c | 25 +++-- 2 files changed, 2

[Bug tools/28725] eu-ar -x -N COUNT uses instance [COUNT+1] of name

2022-08-28 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28725 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org Ever confir

[PATCH] ar: Correct -N COUNT off-by-one

2022-08-28 Thread Mark Wielaard
When using instance [COUNT], the instance check is wrong. instance-- == 0 should be --instance == 0. Add a testcase run-ar-N.sh that uses -N COUNT with extract and delete operations checking the right instance was extracted and deleted. https://sourceware.org/bugzilla/show_bug.cgi?id=28725 Repor