comparison lib/fts_.h @ 39901:33cf8a9f314a

fts: remove FTS_NOATIME This reverts commit da4d6974013c822af1498941e32db774b2031765. We cannot guarantee that O_NOATIME works: e.g. openat fails with EPERM if the effective user ID of the caller does not match the owner of the file and the caller is not privileged. Downstream findutils has never picked up FTS_NOATIME. Discussed at <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>. * lib/fts_.h (FTS_NOATIME): Remove bit flag. (FTS_OPTIONMASK): Adjust. * lib/fts.c (diropen, fts_open, fts_build): Likewise. (fd_ring_check): Likewise.
author Bernhard Voelker <mail@bernhard-voelker.de>
date Mon, 08 Oct 2018 16:45:36 -0700
parents 10eb9086bea0
children 150a42da9e0d
comparison
equal deleted inserted replaced
39900:c90f29b80ee8 39901:33cf8a9f314a
147 nonzero, the S_IFMT type bits are valid, with mapped dirent.d_type data. 147 nonzero, the S_IFMT type bits are valid, with mapped dirent.d_type data.
148 Of course, that happens only on file systems that provide useful 148 Of course, that happens only on file systems that provide useful
149 dirent.d_type data. */ 149 dirent.d_type data. */
150 # define FTS_DEFER_STAT 0x0400 150 # define FTS_DEFER_STAT 0x0400
151 151
152 # define FTS_NOATIME 0x0800 /* use O_NOATIME during traversal */ 152 /* 0x0800 unused, was non-working FTS_NOATIME */
153 153
154 /* Use this flag to disable stripping of trailing slashes 154 /* Use this flag to disable stripping of trailing slashes
155 from input path names during fts_open initialization. */ 155 from input path names during fts_open initialization. */
156 # define FTS_VERBATIM 0x1000 156 # define FTS_VERBATIM 0x1000
157 157