diff options
| author | kremlin <ian@kremlin.cc> | 2014-06-26 10:25:45 +0800 |
|---|---|---|
| committer | kremlin <ian@kremlin.cc> | 2014-06-26 10:25:45 +0800 |
| commit | 881cd13b40104b1ac8aebf282eca72e2fa134ba2 (patch) | |
| tree | 15d775fb1c7986535434a92fa348584572aaf07f | |
| parent | 5e2aed57e68e6ac1b08667b529f5122dc3d13b78 (diff) | |
| download | systembsd-881cd13b40104b1ac8aebf282eca72e2fa134ba2.tar.gz systembsd-881cd13b40104b1ac8aebf282eca72e2fa134ba2.tar.zst systembsd-881cd13b40104b1ac8aebf282eca72e2fa134ba2.zip | |
minor, fix system call logic
| -rw-r--r-- | src/config.c | 2 |
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)) |
