From 960c477148cf832f79e89a4cdf9f3ce3389c7b06 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 29 May 2011 19:12:36 +0200 Subject: setup: Fix wrong access() test --- src/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/setup.c b/src/setup.c index f09a908..83c5504 100644 --- a/src/setup.c +++ b/src/setup.c @@ -329,7 +329,7 @@ find_design_directory (TGallerySetup *setup) if (IS_DIR_SEP (*setup->design_setup_file)) { pth = g_path_get_dirname (setup->design_setup_file); - if (g_access (pth, R_OK)) + if (g_access (pth, R_OK) == 0) return pth; } else { base_dir = g_path_get_dirname (setup->setup_xml_path); -- cgit v1.2.3