[glib/trash-check] fixup! trash portal: Fix permission checks



commit 8e24851fb316911e6799f4d6dfc159561111461f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 4 12:28:36 2019 -0500

    fixup! trash portal: Fix permission checks

 gio/gtrashportal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gtrashportal.c b/gio/gtrashportal.c
index 03a47a8b7..1e63f3078 100644
--- a/gio/gtrashportal.c
+++ b/gio/gtrashportal.c
@@ -84,7 +84,7 @@ g_trash_portal_trash_file (GFile   *file,
 
   fd = g_open (path, O_RDWR | O_CLOEXEC);
   if (fd == -1 && errno == EISDIR)
-    /* If we don't have write access, fall back to O_PATH */
+    /* If it is a directory, fall back to O_PATH */
     fd = g_open (path, O_PATH | O_CLOEXEC | O_RDONLY);
 
   errsv = errno;


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