]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
recurse-dir: correct comment
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Nov 2023 09:56:16 +0000 (10:56 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 Nov 2023 17:44:29 +0000 (17:44 +0000)
The RECURSE_DIR_ENSURE_TYPE flag is actually interpreted by
readdir_all() already, hence rearrange comments to say so.

src/basic/recurse-dir.h

index c10c8ddc9de4db5868dbf6cd3c79cea9f0cf9180..9f6a7adb95b4b7b94b88c2eff80ac0e513cb3f22 100644 (file)
@@ -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 */