]>
Commit | Line | Data |
---|---|---|
f079c372 LP |
1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | ||
3 | #include "main-func.h" | |
4 | #include "nscd-flush.h" | |
5 | #include "strv.h" | |
6 | #include "tests.h" | |
7 | ||
8 | static int run(int argc, char *argv[]) { | |
9 | int r; | |
10 | ||
11 | test_setup_logging(LOG_DEBUG); | |
12 | ||
13 | r = nscd_flush_cache(STRV_MAKE("group", "passwd", "hosts")); | |
14 | if (r < 0) | |
15 | return log_error_errno(r, "Failed to flush NSCD cache"); | |
16 | ||
17 | return 0; | |
18 | } | |
19 | ||
20 | DEFINE_MAIN_FUNCTION(run); |