| 102 | } |
| 103 | |
| 104 | static bool prepare_receiver(Child *child, const char *root) { |
| 105 | if (!path_fits( |
| 106 | snprintf(child->receiver_dir, sizeof(child->receiver_dir), "%s/_receiver.XXXXXX", root), |
| 107 | sizeof(child->receiver_dir)) || |
| 108 | !mkdtemp(child->receiver_dir)) |
| 109 | return false; |
| 110 | return path_fits(snprintf(child->receiver_profile, sizeof(child->receiver_profile), |
| 111 | "%s/receiver.profraw", child->receiver_dir), |
| 112 | sizeof(child->receiver_profile)) && |
| 113 | path_fits(snprintf(child->missing, sizeof(child->missing), "%s/missing-executable", |
| 114 | child->receiver_dir), |
| 115 | sizeof(child->missing)); |
| 116 | } |
| 117 | |
| 118 | static int execute(enum ChildOperation operation, const char *path, char **args) { |
| 119 | switch (operation) { |
no test coverage detected