Skip to content

Commit 40e1100

Browse files
poetteringbluca
authored andcommitted
recurse-dir: correct comment
The RECURSE_DIR_ENSURE_TYPE flag is actually interpreted by readdir_all() already, hence rearrange comments to say so.
1 parent 61c232d commit 40e1100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic/recurse-dir.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ typedef enum RecurseDirFlags {
6060
/* Interpreted by readdir_all() */
6161
RECURSE_DIR_SORT = 1 << 0, /* sort file directory entries before processing them */
6262
RECURSE_DIR_IGNORE_DOT = 1 << 1, /* ignore all dot files ("." and ".." are always ignored) */
63+
RECURSE_DIR_ENSURE_TYPE = 1 << 2, /* guarantees that 'd_type' field of 'de' is not DT_UNKNOWN */
6364

6465
/* Interpreted by recurse_dir() */
65-
RECURSE_DIR_ENSURE_TYPE = 1 << 2, /* guarantees that 'd_type' field of 'de' is not DT_UNKNOWN */
6666
RECURSE_DIR_SAME_MOUNT = 1 << 3, /* skips over subdirectories that are submounts */
6767
RECURSE_DIR_INODE_FD = 1 << 4, /* passes an opened inode fd (O_DIRECTORY fd in case of dirs, O_PATH otherwise) */
6868
RECURSE_DIR_TOPLEVEL = 1 << 5, /* call RECURSE_DIR_ENTER/RECURSE_DIR_LEAVE once for top-level dir, too, with dir_fd=-1 and NULL dirent */

0 commit comments

Comments
 (0)