send a list of available modules to the client. Don't list those with "list = False". */
| 1259 | /* send a list of available modules to the client. Don't list those |
| 1260 | with "list = False". */ |
| 1261 | static void send_listing(int fd) |
| 1262 | { |
| 1263 | int n = lp_num_modules(); |
| 1264 | int i; |
| 1265 | |
| 1266 | for (i = 0; i < n; i++) { |
| 1267 | if (lp_list(i)) |
| 1268 | io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i)); |
| 1269 | } |
| 1270 | |
| 1271 | if (protocol_version >= 25) |
| 1272 | io_printf(fd,"@RSYNCD: EXIT\n"); |
| 1273 | } |
| 1274 | |
| 1275 | static int load_config(int globals_only) |
| 1276 | { |
no test coverage detected