From: Lennart Poettering Date: Wed, 22 Nov 2023 09:56:16 +0000 (+0100) Subject: recurse-dir: correct comment X-Git-Tag: v255-rc3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40e1100283fca9359f7dfb8cb97a92dc02c30994;p=thirdparty%2Fsystemd.git recurse-dir: correct comment The RECURSE_DIR_ENSURE_TYPE flag is actually interpreted by readdir_all() already, hence rearrange comments to say so. --- 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 */