aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorkremlin- <ian@kremlin.cc>2014-06-26 10:25:45 +0800
committerkremlin- <ian@kremlin.cc>2014-06-26 10:25:45 +0800
commitc9e361de70024ff5002666e5d7b437a31e381c17 (patch)
tree15d775fb1c7986535434a92fa348584572aaf07f /src/config.c
parent53f83ba5960811b25e6060dfb05d3ff81459e748 (diff)
downloadsystembsd-c9e361de70024ff5002666e5d7b437a31e381c17.tar
systembsd-c9e361de70024ff5002666e5d7b437a31e381c17.tar.gz
systembsd-c9e361de70024ff5002666e5d7b437a31e381c17.tar.bz2
systembsd-c9e361de70024ff5002666e5d7b437a31e381c17.tar.lz
systembsd-c9e361de70024ff5002666e5d7b437a31e381c17.tar.xz
systembsd-c9e361de70024ff5002666e5d7b437a31e381c17.tar.zst
systembsd-c9e361de70024ff5002666e5d7b437a31e381c17.zip
minor, fix system call logic
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
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))