diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2013-04-04 16:30:49 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2013-04-04 16:30:49 -0400 |
commit | 60234999479df2b890f532472ef5c9d312cfe0c9 (patch) | |
tree | 6d2e2d267ad90545c6b91928bdcd1480f0bfa6fa | |
parent | 9c5ee628e3c669fef579f13c848000fca5379c80 (diff) | |
download | nautilus-60234999479df2b890f532472ef5c9d312cfe0c9.tar.gz |
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
-rw-r--r-- | libnautilus-private/nautilus-search-engine-simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-search-engine-simple.c b/libnautilus-private/nautilus-search-engine-simple.c index 87ff36316..9c80d2e9c 100644 --- a/libnautilus-private/nautilus-search-engine-simple.c +++ b/libnautilus-private/nautilus-search-engine-simple.c @@ -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; |