chiark / gitweb /
Introduce CONF_DIRS_NULSTR helper to define standard conf dirs
[elogind.git] / src / sysctl / sysctl.c
index 809e59b71fdb6acd8a184e2f52a5fca7d2c092ce..edebe501d198bb2f051983d66c3f92d3f5b98764 100644 (file)
 
 static char **arg_prefixes = NULL;
 
-static const char conf_file_dirs[] =
-        "/etc/sysctl.d\0"
-        "/run/sysctl.d\0"
-        "/usr/local/lib/sysctl.d\0"
-        "/usr/lib/sysctl.d\0"
-#ifdef HAVE_SPLIT_USR
-        "/lib/sysctl.d\0"
-#endif
-        ;
+static const char conf_file_dirs[] = CONF_DIRS_NULSTR("sysctl");
 
 static char* normalize_sysctl(char *s) {
         char *n;