[evolution-data-server/gnome-3-32] Correct test for file writable test in On This Computer backend



commit 1a0d49091c8348571d3f90e9924408adafe8ea6b
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 31 08:59:40 2019 +0200

    Correct test for file writable test in On This Computer backend

 src/calendar/backends/file/e-cal-backend-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/calendar/backends/file/e-cal-backend-file.c b/src/calendar/backends/file/e-cal-backend-file.c
index 954a8f448..2db915f37 100644
--- a/src/calendar/backends/file/e-cal-backend-file.c
+++ b/src/calendar/backends/file/e-cal-backend-file.c
@@ -1380,7 +1380,7 @@ source_changed_cb (ESource *source,
 
                        g_return_if_fail (str_uri != NULL);
 
-                       backend_writable = (g_access (str_uri, W_OK) != 0);
+                       backend_writable = (g_access (str_uri, W_OK) == 0);
 
                        g_free (str_uri);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]