X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig.c;h=2456097794064b1cb6a29b40137f5b0d76bbb47f;hb=881cd13b40104b1ac8aebf282eca72e2fa134ba2;hp=2f8a76bc5c9d23470441c77e954e01c7261ae48c;hpb=5e2aed57e68e6ac1b08667b529f5122dc3d13b78;p=systembsd.git 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))