From c9e361de70024ff5002666e5d7b437a31e381c17 Mon Sep 17 00:00:00 2001 From: kremlin- Date: Wed, 25 Jun 2014 21:25:45 -0500 Subject: [PATCH] minor, fix system call logic --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.41.0