[nautilus] search-engine-simple: don't follow symlinks when descending
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] search-engine-simple: don't follow symlinks when descending
- Date: Thu, 4 Apr 2013 20:41:56 +0000 (UTC)
commit 60234999479df2b890f532472ef5c9d312cfe0c9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 4 16:30:49 2013 -0400
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
.../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 87ff363..9c80d2e 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]