[libdazzle] transfer: only add directory for reap when directory
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] transfer: only add directory for reap when directory
- Date: Sat, 4 Aug 2018 03:26:42 +0000 (UTC)
commit 54c321c1c1c6048e10a9a66886fe0bcb39a72a4b
Author: Christian Hergert <chergert redhat com>
Date: Fri Aug 3 20:26:22 2018 -0700
transfer: only add directory for reap when directory
src/files/dzl-file-transfer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/files/dzl-file-transfer.c b/src/files/dzl-file-transfer.c
index d2a8ef5..82e3605 100644
--- a/src/files/dzl-file-transfer.c
+++ b/src/files/dzl-file-transfer.c
@@ -548,7 +548,7 @@ handle_removal (DzlFileTransfer *self,
if (oper->error != NULL)
return;
- if (g_file_query_file_type (oper->src, 0, NULL) == G_FILE_TYPE_DIRECTORY)
+ if (g_file_query_file_type (oper->src, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL) ==
G_FILE_TYPE_DIRECTORY)
dzl_directory_reaper_add_directory (reaper, oper->src, 0);
dzl_directory_reaper_add_file (reaper, oper->src, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]