[file-roller/gnome-3-20] do not follow symlinks when deleting a folder recursively
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-3-20] do not follow symlinks when deleting a folder recursively
- Date: Wed, 17 Aug 2016 14:04:06 +0000 (UTC)
commit f70be1f41688859ec8dbe266df35a1839ceb96c5
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Aug 17 15:41:35 2016 +0200
do not follow symlinks when deleting a folder recursively
[bug #698554]
src/file-utils.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/file-utils.c b/src/file-utils.c
index a60fca2..bddf894 100644
--- a/src/file-utils.c
+++ b/src/file-utils.c
@@ -411,9 +411,8 @@ _g_file_remove_directory (GFile *directory,
return TRUE;
enumerator = g_file_enumerate_children (directory,
- G_FILE_ATTRIBUTE_STANDARD_NAME ","
- G_FILE_ATTRIBUTE_STANDARD_TYPE,
- 0,
+ G_FILE_ATTRIBUTE_STANDARD_NAME ","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
+ G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
cancellable,
error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]