[gnome-builder] ctags: don't recurse into symlinks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ctags: don't recurse into symlinks
- Date: Thu, 25 Jan 2018 08:02:22 +0000 (UTC)
commit ef07280e58a200b7ff78142620a25c71603f06a8
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 25 00:01:22 2018 -0800
ctags: don't recurse into symlinks
src/plugins/ctags/ide-ctags-builder.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/ctags/ide-ctags-builder.c b/src/plugins/ctags/ide-ctags-builder.c
index 28784c837..7008aa958 100644
--- a/src/plugins/ctags/ide-ctags-builder.c
+++ b/src/plugins/ctags/ide-ctags-builder.c
@@ -184,6 +184,7 @@ ide_ctags_builder_build (IdeCtagsBuilder *self,
*/
enumerator = g_file_enumerate_children (directory,
+ G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK","
G_FILE_ATTRIBUTE_STANDARD_NAME","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
@@ -205,6 +206,9 @@ ide_ctags_builder_build (IdeCtagsBuilder *self,
if (g_hash_table_contains (ignored, name))
continue;
+ if (g_file_info_get_is_symlink (info))
+ continue;
+
if (type == G_FILE_TYPE_DIRECTORY)
{
if (recursive)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]