| 124 | */ |
| 125 | |
| 126 | struct walk_context { |
| 127 | // Current item |
| 128 | int dir_fd; |
| 129 | const char *name; |
| 130 | bool is_dir; |
| 131 | struct stat st; |
| 132 | |
| 133 | // Common for the whole walk |
| 134 | dev_t root_dev; |
| 135 | void (*callback)(struct walk_context *ctx); |
| 136 | |
| 137 | // Used by our callbacks |
| 138 | uid_t chown_uid; |
| 139 | gid_t chown_gid; |
| 140 | bool keep_special_files; |
| 141 | }; |
| 142 | |
| 143 | static void |
| 144 | walktree_ctx(struct walk_context *ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…