[gnome-commander] Check through GIO if a file is a symlink



commit a0f7662ed1d8cd2e3202601da763727a62bbda35
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Jul 10 23:54:34 2021 +0200

    Check through GIO if a file is a symlink

 src/dialogs/gnome-cmd-search-dialog.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index a21f8245..73e95d98 100644
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -418,7 +418,7 @@ void SearchData::search_dir_r(GnomeCmdDir *dir, long level)
             // we don't want to go backwards or to follow symlinks
             if (!f->is_dotdot
                 && strcmp (g_file_info_get_display_name(f->gFileInfo), ".") != 0
-                && !GNOME_VFS_FILE_INFO_SYMLINK (f->info))
+                && !get_gfile_attribute_boolean(f->gFile, G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK))
             {
                 GnomeCmdDir *new_dir = GNOME_CMD_DIR (f);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]