]> Savannah Git Hosting - gnulib.git/commitdiff
fts: cleanup after FTS_NOATIME removal
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Oct 2018 23:53:59 +0000 (16:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Oct 2018 23:56:44 +0000 (16:56 -0700)
* lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
(FTS_STOP): Shrink to minimal values.  We don’t need to
worry about binary compatibility in Gnulib, and the old way
of doing things had a hole in the user options that caused
FTS_OPTIONMASK to not work as desired.

ChangeLog
lib/fts_.h

index f49c41dcbe11760543e4dceabde2df066db514d1..6161c05b6ccd495957f316a396889a37e4bb78ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       fts: cleanup after FTS_NOATIME removal
+       * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
+       (FTS_STOP): Shrink to minimal values.  We don’t need to
+       worry about binary compatibility in Gnulib, and the old way
+       of doing things had a hole in the user options that caused
+       FTS_OPTIONMASK to not work as desired.
+
 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
 
        fts: remove FTS_NOATIME
index 6188122fd901cdbfe26284b8f73c93ffac4f4996..a34a296c0e6067dcd34e7f733fdcaff07550a2d8 100644 (file)
@@ -149,16 +149,14 @@ typedef struct {
      dirent.d_type data.  */
 # define FTS_DEFER_STAT         0x0400
 
-/* 0x0800 unused, was non-working FTS_NOATIME */
-
   /* Use this flag to disable stripping of trailing slashes
      from input path names during fts_open initialization.  */
-# define FTS_VERBATIM   0x1000
+# define FTS_VERBATIM   0x0800
 
-# define FTS_OPTIONMASK 0x1fff          /* valid user option mask */
+# define FTS_OPTIONMASK 0x0fff          /* valid user option mask */
 
-# define FTS_NAMEONLY   0x2000          /* (private) child names only */
-# define FTS_STOP       0x4000          /* (private) unrecoverable error */
+# define FTS_NAMEONLY   0x1000          /* (private) child names only */
+# define FTS_STOP       0x2000          /* (private) unrecoverable error */
         int fts_options;                /* fts_open options, global flags */
 
         /* Map a directory's device number to a boolean.  The boolean is