]> git.ipfire.org Git - thirdparty/tar.git/commit
Use fewer flags when opening directories
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Nov 2025 21:18:27 +0000 (13:18 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 23:10:48 +0000 (15:10 -0800)
commite1445cfdf0dfd2f792532afc1eb18b01523dbfb4
tree9cb96128c2255d10c19c597239eb49427d2d4c20
parent915a8077af12a3eaf7800dbb1a4259783d9933ca
Use fewer flags when opening directories

This doesn’t change behavior; it is a refactoring for
compatibility with a future patch that will use Linux’s
openat2 syscall, which is pickier about flags.
* src/tar.c (decode_options): When searching directories,
do not use O_NOCTTY, O_NONBLOCK, and O_NOATIME.
openat2 rejects all three flags if O_PATH is used.
The first two flags are definitely irrelevant for directories,
and O_NOATIME probably doesn’t matter either.
src/tar.c