Prefer O_PATH to O_SEARCH on Linux kernels

* src/tar.c (decode_options): Prefer O_PATH to an O_SEARCH that is
actually O_RDONLY.
This commit is contained in:
Paul Eggert
2025-11-15 15:10:48 -08:00
parent 238250f19e
commit 8fca2d35e8
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
GNU tar NEWS - User visible changes. 2025-10-19
GNU tar NEWS - User visible changes. 2025-11-09
Please send GNU tar bug reports to <bug-tar@gnu.org>
version 1.35.90 (git)
@@ -49,6 +49,9 @@ option.
not even temporarily. This matches the documentation better and avoids
some permissions glitches.
** tar no longer fails merely if an extraction directory is unreadable
on Linux kernels.
** tar now works better in strict debugging environments that do not
allow pointer arithmetic to escape from a sub-element of an array.