[libdazzle] recursive-monitor: don't follow through symlinks



commit 01b120994959b0d5f3fca8a8d2114ddac7948dcc
Author: Christian Hergert <chergert redhat com>
Date:   Fri Aug 3 14:25:52 2018 -0700

    recursive-monitor: don't follow through symlinks

 src/files/dzl-recursive-file-monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/files/dzl-recursive-file-monitor.c b/src/files/dzl-recursive-file-monitor.c
index 092699d..6636897 100644
--- a/src/files/dzl-recursive-file-monitor.c
+++ b/src/files/dzl-recursive-file-monitor.c
@@ -288,7 +288,7 @@ dzl_recursive_file_monitor_changed (DzlRecursiveFileMonitor *self,
     }
   else if (event == G_FILE_MONITOR_EVENT_CREATED)
     {
-      if (g_file_query_file_type (file, 0, NULL) == G_FILE_TYPE_DIRECTORY)
+      if (g_file_query_file_type (file, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL) == G_FILE_TYPE_DIRECTORY)
         {
           g_autoptr(GPtrArray) dirs = NULL;
 


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