From: kremlin- Date: Thu, 26 Jun 2014 02:25:45 +0000 (-0500) Subject: minor, fix system call logic X-Git-Tag: hostnamed-copyable~13 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git;a=commitdiff_plain;h=c9e361de70024ff5002666e5d7b437a31e381c17 minor, fix system call logic --- diff --git a/src/config.c b/src/config.c index 2f8a76b..2456097 100644 --- a/src/config.c +++ b/src/config.c @@ -115,7 +115,7 @@ gboolean config_init() { /* it does exist, read it */ } else { - if(!g_access(config_path, W_OK)) { + if(g_access(config_path, W_OK)) { 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))