config_path = "/etc/systemd_compat.conf";
config_lstat_ret = g_lstat(config_path, config_lstat);
- /* this should all be handled in the makefile
+ /* this should all be handled in the makefile
* does conf exist?
if(config_lstat_ret) {
if(g_access(config_path, W_OK)) {
- g_printf("%s\n", "no write permissions for /etc/! exiting..");
+ g_printf("%s\n", "no write permissions for /etc/! exiting..");
return FALSE;
} else if(g_key_file_load_from_file(config, config_path, G_KEY_FILE_KEEP_COMMENTS, NULL))
#include "interfaces/hostnamed/hostnamed.c"
gboolean systemd_utils_init() {
- if(!config_init()) {
- gchar *tmp;
- tmp = "/etc/systemd_compat.conf";
-
- g_printf("FAILED to open config %s!\n", tmp);
- return FALSE;
- }
- /*if(!init_xml()) {
- const gchar * const *tmp;
- tmp = g_get_system_data_dirs();
-
- g_printf("FAILED to install xml configs in %s!\n", tmp[0]);
- return FALSE;
- }*/
- return TRUE;
+ if(!config_init()) {
+ gchar *tmp;
+ tmp = "/etc/systemd_compat.conf";
+
+ g_printf("FAILED to open config %s!\n", tmp);
+ return FALSE;
+ }
+ /*if(!init_xml()) {
+ const gchar * const *tmp;
+ tmp = g_get_system_data_dirs();
+
+ g_printf("FAILED to install xml configs in %s!\n", tmp[0]);
+ return FALSE;
+ }*/
+ return TRUE;
}
int main() {