From 40e1100283fca9359f7dfb8cb97a92dc02c30994 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 22 Nov 2023 10:56:16 +0100 Subject: [PATCH] recurse-dir: correct comment The RECURSE_DIR_ENSURE_TYPE flag is actually interpreted by readdir_all() already, hence rearrange comments to say so. --- src/basic/recurse-dir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/recurse-dir.h b/src/basic/recurse-dir.h index c10c8ddc9de..9f6a7adb95b 100644 --- a/src/basic/recurse-dir.h +++ b/src/basic/recurse-dir.h @@ -60,9 +60,9 @@ typedef enum RecurseDirFlags { /* Interpreted by readdir_all() */ RECURSE_DIR_SORT = 1 << 0, /* sort file directory entries before processing them */ RECURSE_DIR_IGNORE_DOT = 1 << 1, /* ignore all dot files ("." and ".." are always ignored) */ + RECURSE_DIR_ENSURE_TYPE = 1 << 2, /* guarantees that 'd_type' field of 'de' is not DT_UNKNOWN */ /* Interpreted by recurse_dir() */ - RECURSE_DIR_ENSURE_TYPE = 1 << 2, /* guarantees that 'd_type' field of 'de' is not DT_UNKNOWN */ RECURSE_DIR_SAME_MOUNT = 1 << 3, /* skips over subdirectories that are submounts */ RECURSE_DIR_INODE_FD = 1 << 4, /* passes an opened inode fd (O_DIRECTORY fd in case of dirs, O_PATH otherwise) */ 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 */ -- 2.47.3