Commit 60234999 authored by Cosimo Cecchi's avatar Cosimo Cecchi

search-engine-simple: don't follow symlinks when descending

It's inconsistent with "find" and it can yield to unexpectedly large
result sets.
Do not follow symlinks when recursing the search down the hierarchy.

https://bugzilla.gnome.org/show_bug.cgi?id=697181
parent 9c5ee628
......@@ -217,7 +217,8 @@ visit_directory (GFile *dir, SearchThreadData *data)
:
STD_ATTRIBUTES
,
0, data->cancellable, NULL);
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
data->cancellable, NULL);
if (enumerator == NULL) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment