Re: [PATCH] openat2: fix trailing-slash dotlike final component
Kinan Al-Falakh <[email protected]>
| Newsgroups | gmane.comp.lib.gnulib.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 2026-06-17 09:34, Paul Eggert wrote: > On 2026-06-16 14:47, kalfalakh wrote: >> GNU tar extracting a member "a/./b" fails with ENOENT. >> It is due to a bug in the emulation of openat2(), more >> specifically when processing dotlike components, >> resulting in openat() being called on "". Please see >> the proposed attached patch. > > Thanks for reporting the problem. I think I see the cause, and > installed the attached patch into Gnulib. Please give the patch a try. > If it doesn't fix things for you, please let us know the platform > you're running on. Also, it'd be nice to see a test case illustrating > the unfixed bug, e.g., in the form of a patch to tests/test-openat2.c. Thank you. Works as expected. Regards, Kinan